summaryrefslogtreecommitdiffstats
path: root/Mac/scripts/ConfigurePython.py
diff options
context:
space:
mode:
Diffstat (limited to 'Mac/scripts/ConfigurePython.py')
-rw-r--r--Mac/scripts/ConfigurePython.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/Mac/scripts/ConfigurePython.py b/Mac/scripts/ConfigurePython.py
index 423b164..2b59d60 100644
--- a/Mac/scripts/ConfigurePython.py
+++ b/Mac/scripts/ConfigurePython.py
@@ -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':