소스 검색

修复启动脚本

root 4 년 전
부모
커밋
46b3d55976
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/start.py

+ 1 - 1
src/start.py

@@ -10,7 +10,7 @@ class StartSupervisord:
     def __init__(self):
         self.cron = CronTab(user='root')
         self.python_bin = sys.executable
-        self.main_file = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'yf_supervisord.py')
+        self.main_file = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), 'yf_supervisord.py')
 
     def init_crond(self):
         cmd = "{} {}".format(self.python_bin, self.main_file)