Commits

Ronny Pfannschmidt  committed a905b29

remove some uses of procdirs, kill the cwd input arg for a subprocess step

  • Participants
  • Parent commits f535b63

Comments (0)

Files changed (2)

File glas_process/baseproc.py

 
 class Proc(object):
     def save_with_batch(self, doc):
-        self.dir.save_with_batch(doc)
+        self.procdir.save_with_batch(doc)
 
     def __init__(self, procdir):
-        self.dir = procdir
+        self.procdir = procdir
         self.queue = Queue()
         self.greenlets = []
         self._control = None

File glas_process/subprocess.py

             steper=steper,
             inputs={
                 'args': [str(x) for x in args],
-                'cwd': str(self.dir.path),
                 'stdin': stdin,
             },
-            belongs_to=self.dir.belongs_to,
         )
         self.save_with_batch(self.step)
 
     step = proc.step
     popen = subprocess.Popen(
         step.inputs['args'],
-        cwd=step.inputs['cwd'],
+        cwd=str(proc.procdir.path),
         stdin=subprocess.PIPE,
         stdout=subprocess.PIPE,
         stderr=subprocess.PIPE,