Skip to content

PYTHONSTARTUP is not run by default when Idle is started #52625

Closed

Description

@jvanpraag
mannequin
BPO 8378
Nosy @terryjreedy, @kbkaiser, @bitdancer, @briancurtin, @asvetlov
Superseder
  • 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 = None
    closed_at = <Date 2014-06-09.21:08:04.302>
    created_at = <Date 2010-04-12.12:49:10.038>
    labels = ['expert-IDLE', 'type-feature']
    title = 'PYTHONSTARTUP is not run by default when Idle is started'
    updated_at = <Date 2014-06-09.21:08:04.301>
    user = 'https://bugs.python.org/jvanpraag'

    bugs.python.org fields:

    activity = <Date 2014-06-09.21:08:04.301>
    actor = 'terry.reedy'
    assignee = 'none'
    closed = True
    closed_date = <Date 2014-06-09.21:08:04.302>
    closer = 'terry.reedy'
    components = ['IDLE']
    creation = <Date 2010-04-12.12:49:10.038>
    creator = 'jvanpraag'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 8378
    keywords = []
    message_count = 4.0
    messages = ['102943', '102952', '220116', '220119']
    nosy_count = 7.0
    nosy_names = ['terry.reedy', 'kbk', 'r.david.murray', 'brian.curtin', 'asvetlov', 'jvanpraag', 'BreamoreBoy']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '5233'
    type = 'enhancement'
    url = 'https://bugs.python.org/issue8378'
    versions = ['Python 3.5']

    Activity

    1. jvanpraag commented on Apr 12, 2010

      jvanpraagmannequin
      MannequinAuthor

      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.

    2. added
      type-bug
      on Apr 12, 2010
    3. bitdancer commented on Apr 12, 2010

      @bitdancer
      Member

      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.

    4. changed the title [-]PYTHONSTARTUP broken on Windows[/-] [+]PYTHONSTARTUP is not run by default when Idle is started[/+] on Apr 12, 2010
    5. added
      type-feature
      and removed
      type-bug
      on Apr 12, 2010
    6. BreamoreBoy commented on Jun 9, 2014

      BreamoreBoymannequin
      Mannequin

      Terry what is your opinion on this?

    7. terryjreedy commented on Jun 9, 2014

      @terryjreedy
      Member

      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.

    8. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      topic-IDLEtype-feature

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions