You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
PYTHONSTARTUP is not run by default when Idle is started #52625
bpo-5233: IDLE: exec IDLESTARTUP/PYTHONSTARTUP on restart
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2014-06-09.21:08:04.302>created_at=<Date2010-04-12.12:49:10.038>labels= ['expert-IDLE', 'type-feature']
title='PYTHONSTARTUP is not run by default when Idle is started'updated_at=<Date2014-06-09.21:08:04.301>user='https://bugs.python.org/jvanpraag'
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.
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 bpo-5594, and also the referenced bpo-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.
David, thank you for the research on related issues. bpo-5233 explicitly includes this proposal: "The former effect of -s would now be the default,". So I am closing this as a partial duplicate. I will explain here why I reject this.
Activity
jvanpraag commentedon Apr 12, 2010
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.
bitdancer commentedon Apr 12, 2010
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 bpo-5594, and also the referenced bpo-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.
[-]PYTHONSTARTUP broken on Windows[/-][+]PYTHONSTARTUP is not run by default when Idle is started[/+]BreamoreBoy commentedon Jun 9, 2014
Terry what is your opinion on this?
terryjreedy commentedon Jun 9, 2014
David, thank you for the research on related issues. bpo-5233 explicitly includes this proposal: "The former effect of -s would now be the default,". So I am closing this as a partial duplicate. I will explain here why I reject this.