Kaydet (Commit) 5c83bb0f authored tarafından Just van Rossum's avatar Just van Rossum

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

üst bfa893f3
...@@ -443,9 +443,7 @@ class AppBuilder(BundleBuilder): ...@@ -443,9 +443,7 @@ class AppBuilder(BundleBuilder):
# /usr/bin/python # /usr/bin/python
hashbang = "/usr/bin/python" hashbang = "/usr/bin/python"
else: else:
hashbang = sys.executable hashbang = os.path.realpath(sys.executable)
while os.path.islink(hashbang):
hashbang = os.readlink(hashbang)
standalone = self.standalone 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)
......
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