Browse Source

Add chdir method.

Chris McDonough 18 năm trước cách đây
mục cha
commit
560f953771
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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