diff options
author | Just van Rossum <just@letterror.com> | 2003-03-21 22:22:19 (GMT) |
---|---|---|
committer | Just van Rossum <just@letterror.com> | 2003-03-21 22:22:19 (GMT) |
commit | 5c83bb0f4a53f65fa70c3bbf5ddbfbe88d01bf25 (patch) | |
tree | 2ab11260ed2bd89e95d99da2c71a8227ef858bda /Lib | |
parent | bfa893f3acd40d3d3178a4b738328f56083d3906 (diff) | |
download | cpython-5c83bb0f4a53f65fa70c3bbf5ddbfbe88d01bf25.zip cpython-5c83bb0f4a53f65fa70c3bbf5ddbfbe88d01bf25.tar.gz cpython-5c83bb0f4a53f65fa70c3bbf5ddbfbe88d01bf25.tar.bz2 |
use os.path.realpath() instead of os.readlink()
Diffstat (limited to 'Lib')
-rwxr-xr-x | Lib/plat-mac/bundlebuilder.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/plat-mac/bundlebuilder.py b/Lib/plat-mac/bundlebuilder.py index 86f5e49..28ccbd7 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) |