Mercurial > cpython-lru_cache-weakref
diff Mac/scripts/EditPythonPrefs.py @ 11517:71281ff8c6a2 legacy-trunk
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.
| author | Jack Jansen <jack.jansen@cwi.nl> |
|---|---|
| date | Thu, 02 Dec 1999 22:52:12 +0000 |
| parents | ebd099889721 |
| children | 3c213e372b22 |
line wrap: on
line diff
--- a/Mac/scripts/EditPythonPrefs.py Wed Dec 01 23:40:01 1999 +0000 +++ b/Mac/scripts/EditPythonPrefs.py Thu Dec 02 22:52:12 1999 +0000 @@ -151,7 +151,10 @@ 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)
