パスをosでとってくるように

This commit is contained in:
suti7yk5032 2024-10-30 23:39:31 +09:00
parent 0929f7af0a
commit 49a182b62b

View file

@ -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):