Commit 5c83bb0f authored by Just van Rossum's avatar Just van Rossum

use os.path.realpath() instead of os.readlink()

parent bfa893f3
......@@ -443,9 +443,7 @@ class AppBuilder(BundleBuilder):
# /usr/bin/python
hashbang = "/usr/bin/python"
else:
hashbang = sys.executable
while os.path.islink(hashbang):
hashbang = os.readlink(hashbang)
hashbang = os.path.realpath(sys.executable)
standalone = self.standalone
open(bootstrappath, "w").write(BOOTSTRAP_SCRIPT % locals())
os.chmod(bootstrappath, 0775)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment