パスをosでとってくるように
This commit is contained in:
parent
0929f7af0a
commit
49a182b62b
1 changed files with 2 additions and 2 deletions
|
@ -30,8 +30,8 @@ sp_startupinfo.wShowWindow = subprocess.SW_HIDE
|
|||
resource_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), "resource")
|
||||
config_dir_path = "./config/"
|
||||
client_config_path = config_dir_path + "client.json"
|
||||
lang_dir_path = "./lang/"
|
||||
lang_path = lang_dir_path + "lang_client.json"
|
||||
lang_dir_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), "lang")
|
||||
lang_path = lang_dir_path + "\\lang_client.json"
|
||||
|
||||
if not os.path.isfile(client_config_path):
|
||||
if not os.path.isdir(config_dir_path):
|
||||
|
|
Loading…
Reference in a new issue