mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Capitalized globals
This commit is contained in:
parent
defe356940
commit
72abe20f58
@ -5,8 +5,8 @@ import sys
|
|||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
######## GLOBALS #########
|
######## GLOBALS #########
|
||||||
mainprefix = "z"
|
MAINPREFIX = "z"
|
||||||
prefix = "ace_"
|
PREFIX = "ace_"
|
||||||
##########################
|
##########################
|
||||||
|
|
||||||
def mod_time(path):
|
def mod_time(path):
|
||||||
@ -19,12 +19,12 @@ 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, "{}{}.pbo".format(prefix,module))):
|
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, "{}{}.pbo".format(prefix,module)))
|
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]
|
||||||
if not os.path.exists(os.path.join(addonspath, module)):
|
if not os.path.exists(os.path.join(addonspath, module)):
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
@ -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,
|
||||||
"{}{}.pbo".format(prefix,p)
|
"{}{}.pbo".format(PREFIX,p)
|
||||||
], stderr=subprocess.STDOUT)
|
], stderr=subprocess.STDOUT)
|
||||||
except:
|
except:
|
||||||
failed += 1
|
failed += 1
|
||||||
|
Loading…
Reference in New Issue
Block a user