This is just for clarity, and moving more code into the main() function.
sys.exit(1)
-boxfile = os.path.join(os.getcwd(), 'buildserver.box')
tail = None
parser = OptionParser()
if '__builtins__' in config:
del(config['__builtins__']) # added by compile/exec
-if os.path.exists(boxfile):
- os.remove(boxfile)
-
# Update cached files.
cachedir = config['cachedir']
if not os.path.exists(cachedir):
v.halt()
print("Packaging")
+ boxfile = os.path.join(os.getcwd(), 'buildserver.box')
+ if os.path.exists(boxfile):
+ os.remove(boxfile)
v.package(output=boxfile)
print("Adding box")