Default version of IDLE(Python GUI) doesn't provide an option to pass arguments to python script.
Here is a simple snippet, that can be integrated into your python script to pass arguments through IDLE(Python GUI).
import sys
sys.argv[1:] = ['argument1', 'argument2', 'argument2']
print sys.argv
Output:
['C:/Python27/test', 'argument1', 'argument2', 'argument2']
0 Comments