From ff374a7667146f35d8709a3b92006e256a378620 Mon Sep 17 00:00:00 2001 From: cuu Date: Sat, 19 Jan 2019 19:24:38 +0800 Subject: [PATCH] auto create GameDir in CommercialSoftwarePackage --- sys.py/UI/CommercialSoftwarePackage/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys.py/UI/CommercialSoftwarePackage/__init__.py b/sys.py/UI/CommercialSoftwarePackage/__init__.py index 380b72b..eb33084 100644 --- a/sys.py/UI/CommercialSoftwarePackage/__init__.py +++ b/sys.py/UI/CommercialSoftwarePackage/__init__.py @@ -252,6 +252,8 @@ class MyCommercialSoftwarePackage(object): if FileExists(json_config["GameDir"]): os.chdir(json_config["GameDir"]) + else: + os.system( "mkdir %s" % json_config["GameDir"] ) if "MD5" in json_config: for i,v in enumerate(json_config["MD5"]):