Mercurial > cpython-lru_cache-weakref
diff Mac/scripts/ConfigurePython.py @ 10040:3ad2b2e31f53 legacy-trunk
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
| author | Just van Rossum <just@lettererror.com> |
|---|---|
| date | Sat, 30 Jan 1999 17:46:34 +0000 |
| parents | 124ef694c284 |
| children | 32652f6996e3 |
line wrap: on
line diff
--- a/Mac/scripts/ConfigurePython.py Sat Jan 30 15:25:30 1999 +0000 +++ b/Mac/scripts/ConfigurePython.py Sat Jan 30 17:46:34 1999 +0000 @@ -89,9 +89,9 @@ """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 @@ 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 @@ 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
