diff options
author | Just van Rossum <just@lettererror.com> | 1999-01-30 17:46:34 (GMT) |
---|---|---|
committer | Just van Rossum <just@lettererror.com> | 1999-01-30 17:46:34 (GMT) |
commit | 786cb11e51ecc5b2cf402badcb3e5f056a65341d (patch) | |
tree | 62d78fe97eaf6d1c343fdc7686248efa77b6d195 /Mac/scripts | |
parent | 292f4c467662d421d54431c2986cf8864cf58f6d (diff) | |
download | cpython-786cb11e51ecc5b2cf402badcb3e5f056a65341d.zip cpython-786cb11e51ecc5b2cf402badcb3e5f056a65341d.tar.gz cpython-786cb11e51ecc5b2cf402badcb3e5f056a65341d.tar.bz2 |
Fixed two typo's (Plugins -> PlugIns) and added some explicit path munging to allow the script to also work from the Scripts folder. Somehow either of these fixes solved a problem where it suddenly refused to make a PythonCore alias in the Extensions folder. -- jvr
Diffstat (limited to 'Mac/scripts')
-rw-r--r-- | Mac/scripts/ConfigurePython.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Mac/scripts/ConfigurePython.py b/Mac/scripts/ConfigurePython.py index 8fd0a3c..3ecc75b 100644 --- a/Mac/scripts/ConfigurePython.py +++ b/Mac/scripts/ConfigurePython.py @@ -89,9 +89,9 @@ def gotopluginfolder(): """Go to the plugin folder, assuming we are somewhere in the Python tree""" import os - while not os.path.isdir(":Mac:Plugins"): + while not os.path.isdir(":Mac:PlugIns"): os.chdir("::") - os.chdir(":Mac:Plugins") + os.chdir(":Mac:PlugIns") if verbose: print "current directory is", os.getcwd() def loadtoolboxmodules(): @@ -146,8 +146,8 @@ def mkcorealias(src, altsrc): import macostools version = string.split(sys.version)[0] dst = getextensiondirfile(src+ ' ' + version) - if not os.path.exists(src): - if not os.path.exists(altsrc): + if not os.path.exists(os.path.join(sys.exec_prefix, src)): + if not os.path.exists(os.path.join(sys.exec_prefix, altsrc)): if verbose: print '*', src, 'not found' return 0 src = altsrc @@ -155,7 +155,7 @@ def mkcorealias(src, altsrc): os.unlink(dst) except os.error: pass - macostools.mkalias(src, dst) + macostools.mkalias(os.path.join(sys.exec_prefix, src), dst) if verbose: print ' ', dst, '->', src return 1 |