What's the right way to use idlestartup on python 2.6.5?
Posted
by user210481
on Stack Overflow
See other posts from Stack Overflow
or by user210481
Published on 2010-04-09T14:04:06Z
Indexed on
2010/04/09
14:13 UTC
Read the original article
Hit count: 297
Idlestartup is analogous to pythonstartup variable, but for IDLE, instead of command line. But it seems not to work properly. I'm using python 2.6.5 on Windows.
I have the following script assigned to it:
from pprint import pprint
import sys
newPath = 'C:\\Python26\test')
sys.path.append(newPath)
print "initial config loaded"
Both variables Idlestartup and pythonstartup are assigned to the same file (script above). When running IDLE, pprint and sys are NOT available, the final message is NOT printed, but newPath was added to sys.path. Running the command line, pprint and sys are available, the final message is printed and newPath was added to sys.path.
Is it a bug? Am I doing something wrong? Thanks
© Stack Overflow or respective owner