mirror of
https://github.com/python/cpython.git
synced 2025-07-26 04:34:20 +00:00
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.
This commit is contained in:
parent
542411384c
commit
2a42c3a8d3
2 changed files with 8 additions and 4 deletions
|
@ -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':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue