check if running under IDLE
Bob Gailer
bgailer at alum.rpi.edu
Tue Aug 5 08:39:11 EDT 2003
At 10:26 PM 8/4/2003 +0200, Helmut Jarausch wrote:
>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.
This has been discussed a number of times. Check the archive.
Bob Gailer
bgailer at alum.rpi.edu
303 442 2625
-------------- next part --------------
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.506 / Virus Database: 303 - Release Date: 8/1/2003
More information about the Python-list
mailing list