check if running under IDLE
Helmut Jarausch
jarausch at skynet.be
Mon Aug 4 16:26:19 EDT 2003
Hi,
I'd like to check a script which needs sys.argv
I haven't seen a method to set this when running the script
in IDLE's shell or editor window.
The only way I've found is to assign (test values)
to sys.argv but only if the script is running under IDLE
Is there a mean either to set sys.argv without modifying
the script or to check if the script is running under IDLE's
control.
Thanks for a hint,
Helmut Jarausch
Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany
More information about the Python-list
mailing list