diff --git a/Lib/plat-mac/bundlebuilder.py b/Lib/plat-mac/bundlebuilder.py index 86f5e49aafd..28ccbd7924d 100755 --- a/Lib/plat-mac/bundlebuilder.py +++ b/Lib/plat-mac/bundlebuilder.py @@ -443,9 +443,7 @@ def preProcess(self): # /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)