Commit 0441dbff authored by Just van Rossum's avatar Just van Rossum

OSX workaround: don't crash if the extentions folder can't be found.

Not sure how to properly solve this.
parent e9039b17
......@@ -190,8 +190,12 @@ def copyres(input, output, *args, **kwargs):
def findpythoncore():
"""find the PythonCore shared library, possibly asking the user if we can't find it"""
vRefNum, dirID = macfs.FindFolder(kOnSystemDisk, kSharedLibrariesFolderType, 0)
extpath = macfs.FSSpec((vRefNum, dirID, "")).as_pathname()
try:
vRefNum, dirID = macfs.FindFolder(kOnSystemDisk, kSharedLibrariesFolderType, 0)
except macfs.error:
extpath = ":"
else:
extpath = macfs.FSSpec((vRefNum, dirID, "")).as_pathname()
version = string.split(sys.version)[0]
if MacOS.runtimemodel == 'carbon':
corename = "PythonCoreCarbon " + version
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment