Skip to content

Commit 2a42c3a

Browse files
committed
Not being able to copy PythonCore to the system-folder is not a fatal error, on OSX the user may not have permission to do so. Also give a more informative message in this case.
Fixes bug 475253.
1 parent 5424113 commit 2a42c3a

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

Mac/scripts/ConfigurePython.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,13 @@ def mkcorealias(src, altsrc):
7171
except os.error:
7272
pass
7373
do_copy = ask_copy()
74-
if do_copy:
75-
macostools.copy(os.path.join(sys.exec_prefix, src), dst)
76-
else:
77-
macostools.mkalias(os.path.join(sys.exec_prefix, src), dst)
74+
try:
75+
if do_copy:
76+
macostools.copy(os.path.join(sys.exec_prefix, src), dst)
77+
else:
78+
macostools.mkalias(os.path.join(sys.exec_prefix, src), dst)
79+
except IOError:
80+
return 0
7881
return 1
7982

8083
do_copy = None
@@ -166,6 +169,7 @@ def main():
166169
Dlg.CautionAlert(ALERT_NOCORE, None)
167170
if verbose:
168171
print "Warning: PythonCore not copied to Extensions folder"
172+
print " (Applets will not work unless run from the Python folder)"
169173
if sys.argv[0][-7:] == 'Classic':
170174
do_classic = 1
171175
elif sys.argv[0][-6:] == 'Carbon':

Mac/scripts/ConfigurePython.rsrc

59 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)