Changeset de059e1


Ignore:
Timestamp:
Sep 25, 2012 5:14:17 PM (12 years ago)
Author:
Ted Faber <faber@…>
Branches:
master
Children:
ab662b6
Parents:
319fb0a
Message:

Chdir when doing an ns2topdl using the local tcl

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/federation/ns2topdl.py

    r319fb0a rde059e1  
    143143        tclcmd.extend([pid, gid, eid, tclfile])
    144144        self.log.debug("Calling splitter %s" % " ".join(tclcmd))
    145         tclparser = subprocess.Popen(tclcmd, stdout=subprocess.PIPE, stderr=ef)
     145        # This is just fantastic.  As a side effect the parser copies
     146        # tb_compat.tcl into the current directory, so that directory
     147        # must be writable by the fedd user.  Doing this in the
     148        # temporary subdir ensures this is the case.
     149        tclparser = subprocess.Popen(tclcmd, stdout=subprocess.PIPE,
     150                stderr=ef, cwd=tmpdir)
    146151
    147152        try:
Note: See TracChangeset for help on using the changeset viewer.