mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
New-school .format, Fixed prefix
This commit is contained in:
parent
02580d510d
commit
defe356940
@ -19,9 +19,9 @@ def mod_time(path):
|
|||||||
|
|
||||||
|
|
||||||
def check_for_changes(addonspath, module):
|
def check_for_changes(addonspath, module):
|
||||||
if not os.path.exists(os.path.join(addonspath, prefix + module + ".pbo")):
|
if not os.path.exists(os.path.join(addonspath, "{}{}.pbo".format(prefix,module))):
|
||||||
return True
|
return True
|
||||||
return mod_time(os.path.join(addonspath, module)) > mod_time(os.path.join(addonspath, prefix + module + ".pbo"))
|
return mod_time(os.path.join(addonspath, module)) > mod_time(os.path.join(addonspath, "{}{}.pbo".format(prefix,module)))
|
||||||
|
|
||||||
def check_for_obsolete_pbos(addonspath, file):
|
def check_for_obsolete_pbos(addonspath, file):
|
||||||
module = file[len(prefix):-4]
|
module = file[len(prefix):-4]
|
||||||
@ -72,9 +72,9 @@ def main():
|
|||||||
subprocess.check_output([
|
subprocess.check_output([
|
||||||
"makepbo",
|
"makepbo",
|
||||||
"-NUP",
|
"-NUP",
|
||||||
"-@={}\\addons\\{}\\".format(mainprefix, prefix.rstrip("_")) + p,
|
"-@={}\\{}\\addons\\{}".format(mainprefix,prefix.rstrip("_"),p),
|
||||||
p,
|
p,
|
||||||
prefix + p + ".pbo"
|
"{}{}.pbo".format(prefix,p)
|
||||||
], stderr=subprocess.STDOUT)
|
], stderr=subprocess.STDOUT)
|
||||||
except:
|
except:
|
||||||
failed += 1
|
failed += 1
|
||||||
|
Loading…
Reference in New Issue
Block a user