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
commit 83b56b57c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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