Browse Source

Merge pull request #158 from cuu/master

 auto create GameDir in CommercialSoftwarePackage
GNU 5 years ago
parent
commit
d93e514e78
1 changed files with 2 additions and 0 deletions
  1. 2 0
      sys.py/UI/CommercialSoftwarePackage/__init__.py

+ 2 - 0
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"]):