]> granicus.if.org Git - python/commitdiff
use os.path.realpath() instead of os.readlink()
authorJust van Rossum <just@letterror.com>
Fri, 21 Mar 2003 22:22:19 +0000 (22:22 +0000)
committerJust van Rossum <just@letterror.com>
Fri, 21 Mar 2003 22:22:19 +0000 (22:22 +0000)
Lib/plat-mac/bundlebuilder.py

index 86f5e49aafdc0826fff5ebac0fd900ccf70e795b..28ccbd7924d41947df0e4346a93cc0cd9dd5e1ae 100755 (executable)
@@ -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)