Determine whether program was started by clicking icon or command line
Benjamin Hell
bhell at spamfence.net
Thu Nov 29 03:51:11 EST 2007
More information about the Python-list mailing list
Thu Nov 29 03:51:11 EST 2007
- Previous message (by thread): Determine whether program was started by clicking icon or command line
- Next message (by thread): Determine whether program was started by clicking icon or command line
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi! I wonder whether there might be a way to find out how a Python program was started (in my case in Windows): By double clicking the file or by calling it on the "DOS" command line prompt. Background: I would like to have the program run in an "interactive mode" if double clicked, and silently in a "batch mode" when started otherwise. Any hints? Thank you! Ben
- Previous message (by thread): Determine whether program was started by clicking icon or command line
- Next message (by thread): Determine whether program was started by clicking icon or command line
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list