Changeset View
Changeset View
Standalone View
Standalone View
ext/python/Tools/freeze/freeze.py
Show First 20 Lines • Show All 311 Lines • ▼ Show 20 Lines | def main(): | ||||
# handle -o option | # handle -o option | ||||
base_frozen_c = frozen_c | base_frozen_c = frozen_c | ||||
base_config_c = config_c | base_config_c = config_c | ||||
base_target = target | base_target = target | ||||
if odir and not os.path.isdir(odir): | if odir and not os.path.isdir(odir): | ||||
try: | try: | ||||
os.mkdir(odir) | os.mkdir(odir) | ||||
print("Created output directory", odir) | print("Created output directory", odir) | ||||
except os.error, msg: | except os.error as msg: | ||||
usage('%s: mkdir failed (%s)' % (odir, str(msg))) | usage('%s: mkdir failed (%s)' % (odir, str(msg))) | ||||
base = '' | base = '' | ||||
if odir: | if odir: | ||||
base = os.path.join(odir, '') | base = os.path.join(odir, '') | ||||
frozen_c = os.path.join(odir, frozen_c) | frozen_c = os.path.join(odir, frozen_c) | ||||
config_c = os.path.join(odir, config_c) | config_c = os.path.join(odir, config_c) | ||||
target = os.path.join(odir, target) | target = os.path.join(odir, target) | ||||
makefile = os.path.join(odir, makefile) | makefile = os.path.join(odir, makefile) | ||||
▲ Show 20 Lines • Show All 175 Lines • Show Last 20 Lines |