getting the script name
Henk
Henk
Wed Oct 9 05:41:51 EDT 2002
More information about the Python-list mailing list
Wed Oct 9 05:41:51 EDT 2002
- Previous message (by thread): getting the script name
- Next message (by thread): Generating a spacer gif on the fly
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Wed, 09 Oct 2002 09:28:17 GMT, Padraig Brady <Padraig at Linux.ie> wrote: >Henk wrote: >> Hi, >> >> Is there any way to retrieve the name of the running script from >> within this running script? > >import sys >sys.argv[0] Thanks, However, I need to refine my question: my script is launched from within a C++ app (using IActiveScriptingEngine and that kind of stuff). Using your solution gives me the exe, not the script name. Any idea? Henk >
- Previous message (by thread): getting the script name
- Next message (by thread): Generating a spacer gif on the fly
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list