Changeset 7321a43 for fedd/federation


Ignore:
Timestamp:
Jul 29, 2009 1:24:33 PM (15 years ago)
Author:
Ted Faber <faber@…>
Branches:
version-1.30
Children:
4adc697
Parents:
705233b
Message:

This is fun.

Running the tcl compiler to split out the experiment copies tb_compat.tcl into
the current directory. If the fedd is running in a directory to which it
doesn't have access, strange things happen - creation fails silently.

This runs the splitter (tcl) subprocess in a directory that is guaranteed to
have proper permissions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/federation/experiment_control.py

    r705233b r7321a43  
    19351935
    19361936                self.log.debug("running local splitter %s", " ".join(tclcmd))
    1937                 tclparser = Popen(tclcmd, stdout=PIPE, close_fds=True)
     1937                # This is just fantastic.  As a side effect the parser copies
     1938                # tb_compat.tcl into the current directory, so that directory
     1939                # must be writable by the fedd user.  Doing this in the
     1940                # temporary subdir ensures this is the case.
     1941                tclparser = Popen(tclcmd, stdout=PIPE, close_fds=True,
     1942                        cwd=tmpdir)
    19381943                split_data = tclparser.stdout
    19391944
Note: See TracChangeset for help on using the changeset viewer.