don't do anything if run standalone and given a -gimp command line option.

2003-07-09  Manish Singh  <yosh@gimp.org>

        * plug-ins/pygimp/plug-ins/gtkcons.py: don't do anything if run
        standalone and given a -gimp command line option. (Sanity against
        #117074)
This commit is contained in:
Manish Singh 2003-07-09 21:19:16 +00:00 committed by Manish Singh
parent 6d0ba8fa2e
commit 4b266f3240
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2003-07-09 Manish Singh <yosh@gimp.org>
* plug-ins/pygimp/plug-ins/gtkcons.py: don't do anything if run
standalone and given a -gimp command line option. (Sanity against
#117074)
2003-07-09 Dave Neary <bolsh@gimp.org>
* devel-docs/pat.txt: Documented the pat version 1 file

View File

@ -298,5 +298,6 @@ def gtk_console(ns, title='Python', menu=None):
gtk.main()
if __name__ == '__main__':
gtk_console({'__builtins__': __builtins__, '__name__': '__main__',
'__doc__': None})
if len(sys.argv) < 2 or sys.argv[1] != '-gimp':
gtk_console({'__builtins__': __builtins__, '__name__': '__main__',
'__doc__': None})