Skip to content

Commit

Permalink
Update start.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tonquer committed Jun 20, 2021
1 parent 9ca60f0 commit 1beba09
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions start.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@
import sys
import os

import platform
# 确保工作区为当前可执行文件所在目录
current_path = os.path.abspath(__file__)
current_dir = os.path.abspath(os.path.dirname(current_path) + os.path.sep + '.')
os.chdir(current_dir)
if not (platform.system().upper() in ['WINDOWS', 'DARWIN', "LINUX"]):
print(platform.system().upper())
current_path = os.path.abspath(__file__)
current_dir = os.path.abspath(os.path.dirname(current_path) + os.path.sep + '.')
os.chdir(current_dir)

from conf import config
import platform
if not platform.system().upper() == 'DARWIN':
sys.path.insert(0, "lib")

Expand Down

0 comments on commit 1beba09

Please sign in to comment.