classification
Title: PYTHONSTARTUP is not run by default when Idle is started
Type: enhancement Stage:
Components: IDLE Versions: Python 3.2
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: brian.curtin, jvanpraag, kbk, r.david.murray
Priority: normal Keywords:

Created on 2010-04-12 12:49 by jvanpraag, last changed 2010-04-12 15:15 by r.david.murray.

Messages (2)
msg102943 - (view) Author: John Van Praag (jvanpraag) Date: 2010-04-12 12:49
The PYTHONSTARTUP environment variable does not work--does not import the indicated startup file--when IDLE is started under Windows. I have tested under Windows XP SP2, and under Windows Vista Ultimate 64 bit.

The os.environ variable does list the startup file, but IDLE fails to run it.
msg102952 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2010-04-12 15:15
Believe it or not, this is the documented behavior of Idle on all platforms.  You have to specify -s to have PYTHONSTARTUP run.

See the last comment in Issue5594, and also the referenced issue 5233, which has a patch that apparently changes this behavior, although that isn't mentioned in that issue itself.

I'm making this a feature request for changing the default behavior, to see what people think.
History
Date User Action Args
2010-04-12 15:15:12r.david.murraysetversions: + Python 3.2, - Python 3.1
nosy: + r.david.murray, kbk

messages: + msg102952

components: - Windows
title: PYTHONSTARTUP broken on Windows -> PYTHONSTARTUP is not run by default when Idle is started
type: behavior -> enhancement
2010-04-12 14:13:56brian.curtinsetpriority: normal
nosy: + brian.curtin
components: + IDLE, Windows
2010-04-12 12:49:10jvanpraagcreate