only set $PYTHONHOME when building a standalone app.
This commit is contained in:
parent
15624d850b
commit
82ad32ec39
|
@ -280,6 +280,7 @@ mainprogram = os.path.join(resdir, "%(mainprogram)s")
|
||||||
|
|
||||||
sys.argv.insert(1, mainprogram)
|
sys.argv.insert(1, mainprogram)
|
||||||
os.environ["PYTHONPATH"] = resdir
|
os.environ["PYTHONPATH"] = resdir
|
||||||
|
if %(standalone)s:
|
||||||
os.environ["PYTHONHOME"] = resdir
|
os.environ["PYTHONHOME"] = resdir
|
||||||
os.environ["PYTHONEXECUTABLE"] = executable
|
os.environ["PYTHONEXECUTABLE"] = executable
|
||||||
os.environ["DYLD_LIBRARY_PATH"] = libdir
|
os.environ["DYLD_LIBRARY_PATH"] = libdir
|
||||||
|
@ -445,6 +446,7 @@ class AppBuilder(BundleBuilder):
|
||||||
hashbang = sys.executable
|
hashbang = sys.executable
|
||||||
while os.path.islink(hashbang):
|
while os.path.islink(hashbang):
|
||||||
hashbang = os.readlink(hashbang)
|
hashbang = os.readlink(hashbang)
|
||||||
|
standalone = self.standalone
|
||||||
open(bootstrappath, "w").write(BOOTSTRAP_SCRIPT % locals())
|
open(bootstrappath, "w").write(BOOTSTRAP_SCRIPT % locals())
|
||||||
os.chmod(bootstrappath, 0775)
|
os.chmod(bootstrappath, 0775)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue