From: Just van Rossum Date: Fri, 21 Mar 2003 22:22:19 +0000 (+0000) Subject: use os.path.realpath() instead of os.readlink() X-Git-Tag: v2.3c1~1393 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5c83bb0f4a53f65fa70c3bbf5ddbfbe88d01bf25;p=python use os.path.realpath() instead of os.readlink() --- diff --git a/Lib/plat-mac/bundlebuilder.py b/Lib/plat-mac/bundlebuilder.py index 86f5e49aaf..28ccbd7924 100755 --- a/Lib/plat-mac/bundlebuilder.py +++ b/Lib/plat-mac/bundlebuilder.py @@ -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)