Explorar el Código

Add chdir method.

Chris McDonough hace 18 años
padre
commit
560f953771
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      src/supervisor/options.py

+ 3 - 0
src/supervisor/options.py

@@ -1161,6 +1161,9 @@ class ServerOptions(Options):
 
     def open(self, fn, mode='r'):
         return open(fn, mode)
+
+    def chdir(self, dir):
+        os.chdir(dir)
         
     def make_pipes(self, stderr=True):
         """ Create pipes for parent to child stdin/stdout/stderr