Merge pull request #157 from cuu/master

fix bug in CommercialSoftwarePackage
This commit is contained in:
GNU
2019-01-19 19:22:22 +08:00
committed by GitHub

View File

@@ -249,7 +249,10 @@ class MyCommercialSoftwarePackage(object):
return ret
cur_dir = os.getcwd()
os.chdir(json_config["GameDir"])
if FileExists(json_config["GameDir"]):
os.chdir(json_config["GameDir"])
if "MD5" in json_config:
for i,v in enumerate(json_config["MD5"]):
if FileExists(v):