Give a warning if system-wide sys.argv processing is off (because then we
authorJack Jansen <jack.jansen@cwi.nl>
Thu, 2 Dec 1999 22:52:12 +0000 (22:52 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Thu, 2 Dec 1999 22:52:12 +0000 (22:52 +0000)
may have missed an applet being dropped on us). This may fix the obscure bug
Tony Ingraldi was experiencing.

Mac/scripts/EditPythonPrefs.py

index 29f4fdb782168829c9676fff1f257db5e334e547..b882bdea9f2a8a269594711052d50d9032941e83 100644 (file)
@@ -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)