Skip to content

Commit

Permalink
修改部分路径达到可构建
Browse files Browse the repository at this point in the history
  • Loading branch information
LiuJiewenTT committed Jan 30, 2024
1 parent 02c35f2 commit cf044da
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/CBJQ_SS_FrontEnd_tk/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def func_none(*args):

def getProgramResourcePath(path):
global frontend_programdir, build_flag
path = osp.join(frontend_programdir+('' if build_flag else '/../'), path)
path = osp.join(frontend_programdir+('' if build_flag else '/../../'), path)
path = osp.normpath(path)
return path

Expand Down Expand Up @@ -231,13 +231,13 @@ def execAction(self, **kwargs):
backend_path = 'CBJQ_SS.main.bat'
server_list = {'国际服': 'worldwide', 'B服': 'bilibili', '官服': 'kingsoft'}

frontend_programdir = osp.normpath(osp.dirname(__file__)+'/../')
# print(__file__)
if osp.splitext(__file__)[-1] == '.py':
frontend_programdir = osp.normpath(osp.dirname(__file__))
if osp.exists(__file__):
build_flag = False
else:
build_flag = True
print(f'frontend_programdir: {frontend_programdir}')
# input()
argv = sys.argv
for i in range(0, len(argv)):
if argv[i] == '-cwd':
Expand Down

0 comments on commit cf044da

Please sign in to comment.