From: Jack Jansen Date: Thu, 2 Dec 1999 22:52:12 +0000 (+0000) Subject: Give a warning if system-wide sys.argv processing is off (because then we X-Git-Tag: v1.6a1~689 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=43fd1f75db89d38010dd118b98f0460e958b5b99;p=thirdparty%2FPython%2Fcpython.git 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. --- diff --git a/Mac/scripts/EditPythonPrefs.py b/Mac/scripts/EditPythonPrefs.py index 29f4fdb78216..b882bdea9f2a 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)