Commit daeb46d3 authored by Jack Jansen's avatar Jack Jansen

Not being able to copy PythonCore to the system-folder is not a fatal error,...

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.
parent ea8a31eb
......@@ -71,10 +71,13 @@ def mkcorealias(src, altsrc):
except os.error:
pass
do_copy = ask_copy()
if do_copy:
macostools.copy(os.path.join(sys.exec_prefix, src), dst)
else:
macostools.mkalias(os.path.join(sys.exec_prefix, src), dst)
try:
if do_copy:
macostools.copy(os.path.join(sys.exec_prefix, src), dst)
else:
macostools.mkalias(os.path.join(sys.exec_prefix, src), dst)
except IOError:
return 0
return 1
do_copy = None
......@@ -166,6 +169,7 @@ def main():
Dlg.CautionAlert(ALERT_NOCORE, None)
if verbose:
print "Warning: PythonCore not copied to Extensions folder"
print " (Applets will not work unless run from the Python folder)"
if sys.argv[0][-7:] == 'Classic':
do_classic = 1
elif sys.argv[0][-6:] == 'Carbon':
......
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