Skip to content

Commit

Permalink
修复部分内部用的路径不是绝对路径的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
LiuJiewenTT committed Jun 27, 2024
1 parent b49c1db commit ecf8197
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/CBJQ_SS_FrontEnd_tk/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1070,7 +1070,7 @@ def enforce_use_pwd_config_section_notedown_logpath(log_filepath: str, savepath:

print(programinfo_str1)

frontend_programdir = osp.normpath(osp.dirname(__file__))
frontend_programdir = osp.normpath(osp.abspath(osp.dirname(__file__)))
print(f'frontend_programdir: {frontend_programdir}')
# input()

Expand All @@ -1093,7 +1093,7 @@ def enforce_use_pwd_config_section_notedown_logpath(log_filepath: str, savepath:
if argv[i] == '-cwd':
arg_cwd = argv[i + 1]
break
arg_cwd_abspath = osp.abspath(arg_cwd)
arg_cwd_abspath = osp.normpath(osp.abspath(arg_cwd))

if enforce_use_pwd_config_state == 'fully':
enforce_use_pwd_config_section_notedown_logpath(osp.join(cwd, 'log.txt'),
Expand Down

0 comments on commit ecf8197

Please sign in to comment.