execfile not available in Python 3, replacing with exec alternative
parent
4f90714df1
commit
85391e63ea
|
@ -48,7 +48,7 @@ def _prep_bins():
|
||||||
prebuilt_path = path.join(package_root, "prebuilt", platform + bit_suffix)
|
prebuilt_path = path.join(package_root, "prebuilt", platform + bit_suffix)
|
||||||
config = {"MANIFEST_DIR": prebuilt_path}
|
config = {"MANIFEST_DIR": prebuilt_path}
|
||||||
try:
|
try:
|
||||||
execfile(path.join(prebuilt_path, "manifest.pycfg"), config)
|
exec(compile(open(path.join(prebuilt_path, "manifest.pycfg"), "rb").read()), config)
|
||||||
except IOError:
|
except IOError:
|
||||||
return # there are no prebuilts for this platform - nothing to do
|
return # there are no prebuilts for this platform - nothing to do
|
||||||
files = map(lambda x: path.join(prebuilt_path, x), config["FILES"])
|
files = map(lambda x: path.join(prebuilt_path, x), config["FILES"])
|
||||||
|
|
Loading…
Reference in New Issue