summaryrefslogtreecommitdiffstats
path: root/Mac/scripts/EditPythonPrefs.py
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1999-12-02 22:52:12 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1999-12-02 22:52:12 (GMT)
commit43fd1f75db89d38010dd118b98f0460e958b5b99 (patch)
tree9bed7a0d996777663a9bf572fde1821f841c046c /Mac/scripts/EditPythonPrefs.py
parentc6f8fd925e826faa3be3471ddbae5dda56cc5245 (diff)
downloadcpython-43fd1f75db89d38010dd118b98f0460e958b5b99.zip
cpython-43fd1f75db89d38010dd118b98f0460e958b5b99.tar.gz
cpython-43fd1f75db89d38010dd118b98f0460e958b5b99.tar.bz2
Give a warning if system-wide sys.argv processing is off (because then we
may have missed an applet being dropped on us). This may fix the obscure bug Tony Ingraldi was experiencing.
Diffstat (limited to 'Mac/scripts/EditPythonPrefs.py')
-rw-r--r--Mac/scripts/EditPythonPrefs.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Mac/scripts/EditPythonPrefs.py b/Mac/scripts/EditPythonPrefs.py
index 29f4fdb..b882bde 100644
--- a/Mac/scripts/EditPythonPrefs.py
+++ b/Mac/scripts/EditPythonPrefs.py
@@ -151,7 +151,10 @@ def interact(options, title):
def edit_preferences():
handler = pythonprefs.PythonOptions()
- result = interact(handler.load(), 'System-wide preferences')
+ options = handler.load()
+ if options['noargs']:
+ EasyDialogs.Message('Warning: system-wide sys.argv processing is off.\nIf you dropped an applet I have not seen it.')
+ result = interact(options, 'System-wide preferences')
if result:
handler.save(result)