GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — sys.safe_path with Command line parameter -P and environment variable `PYTHONSAFEPATH` · Issue #4541 · RustPython/RustPython

sys.safe_path with Command line parameter -P and environment variable PYTHONSAFEPATH #4541

New issue
Copy link
New issue
Copy link
Closed
Closed
sys.safe_path with Command line parameter -P and environment variable PYTHONSAFEPATH#4541
Copy link
Labels
C-compatA discrepancy between RustPython and CPythonA discrepancy between RustPython and CPythongood first issueGood for newcomersGood for newcomers

Description

@youknowone
youknowone
opened on Feb 21, 2023
Issue body actions

https://docs.python.org/3/using/cmdline.html#cmdoption-P

https://github.com/RustPython/RustPython/pull/4537/files#diff-cb42fd26146ec61cb2242243494a9f314667a9a39153ad17e37465ff5a8a8000R536

  • add sys.flags.safe_path add sys.flags and sys.int_info #4568
  • add command line parameter -P to set flag
  • use environment variable PYTHONSAFEPATH to set flag
  • actual implementation of safe_path

I didn't check the actual implementation, but other 3 tasks are easy tasks

Activity

  1. youknowone
    changed the title [-]Command line parameter -P[/-] [+]sys.safe_path with Command line parameter -P and environment variable `PYTHONSAFEPATH`[/+] on Feb 25, 2023
  2. youknowone
    added
    good first issueGood for newcomersGood for newcomers
    C-compatA discrepancy between RustPython and CPythonA discrepancy between RustPython and CPython
    on Feb 25, 2023
  3. naonus commented on Mar 2, 2023

    @naonus
    naonus
    on Mar 2, 2023
    Contributor
    More actions

    I'll take this issue

    Reacted by DimitrisJim
  4. youknowone
    assigned
    naonus
    on Mar 2, 2023
  5. youknowone
    unassigned
    naonus
    on May 11, 2023
  6. AgentK9 commented on Aug 3, 2024

    @AgentK9
    AgentK9
    on Aug 3, 2024
    More actions

    @youknowone - just FYI, tasks 2 and 3 are also completed - https://github.com/RustPython/RustPython/blob/main/src/settings.rs#L245-L249

    After diving into the code, I don't see where it is implemented, but it seems like 4 is also completed after testing it out.

    Could you please close this issue for future people like me?

    Thanks

  7. youknowone commented on Oct 6, 2026

    @youknowone
    youknowone
    on Oct 6, 2026
    MemberAuthor
    More actions

    The originally reported problem no longer reproduces on current main. Closing per the recheck in #8982.

    — commented by Grok 4.6

  8. youknowone
    closed this as completedon Oct 6, 2026
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

    C-compatA discrepancy between RustPython and CPythonA discrepancy between RustPython and CPythongood first issueGood for newcomersGood for newcomers

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.