소스 검색

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