Skip to content

Commit

Permalink
fix .config file not working on Unix systems
Browse files Browse the repository at this point in the history
  • Loading branch information
tfx2001 committed Dec 9, 2023
1 parent 6ec5d92 commit 01f873b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmds/cmd_package/cmd_package_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def need_using_mirror_download():
return is_China_ip

server_decision = ""
config_file = os.path.join(Import('env_root'), r'tools\scripts\cmds', '.config')
config_file = os.path.join(Import('env_root'), 'tools', 'scripts', 'cmds', '.config')
if os.path.isfile(config_file) and find_bool_macro_in_config(config_file, 'SYS_DOWNLOAD_SERVER_GITHUB'):
is_China_ip = False # Github which means not China IP
server_decision = "manually decision"
Expand Down
2 changes: 1 addition & 1 deletion statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def get_mac_address():

def Information_statistics():
# get the .config file from env
env_kconfig_path = os.path.join(os.getcwd(), 'tools\\scripts\\cmdscmds')
env_kconfig_path = os.path.join(os.getcwd(), 'tools', 'scripts', 'cmds')
env_config_file = os.path.join(env_kconfig_path, '.config')

mac_addr = get_mac_address()
Expand Down

0 comments on commit 01f873b

Please sign in to comment.