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

This commit is contained in:
Just van Rossum 2003-03-21 22:22:19 +00:00
parent bfa893f3ac
commit 5c83bb0f4a

View file

@ -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)