浏览代码

Add chdir method.

Chris McDonough 18 年之前
父节点
当前提交
560f953771
共有 1 个文件被更改,包括 3 次插入0 次删除
  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