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

Not sure how to properly solve this.
This commit is contained in:
Just van Rossum 2001-12-13 17:11:21 +00:00
parent e9039b1742
commit 0441dbff16
1 changed files with 6 additions and 2 deletions

View File

@ -190,7 +190,11 @@ def copyres(input, output, *args, **kwargs):
def findpythoncore():
"""find the PythonCore shared library, possibly asking the user if we can't find it"""
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':