Skip to content

Emscripten: Make python.sh function as proper Python CLI #127503

Description

@hoodmane

There are several problems with python.sh right now:

  1. It doesn't work correctly on macs with bsd coreutils
  2. It doesn't mount the native file system into the Emscripten file system, so python.sh /some/file.py will fail to find the file
  3. It doesn't set the current directory in the Emscripten file system to the same as the host working directory so python.sh file.py won't look for file.py in the current directory
  4. It doesn't inherit environment variables

@freakboy3742

Linked PRs

Activity

  1. changed the title [-]Emscripten: Make python.sh function as a proper CLI entrypoint[/-] [+]Emscripten: Make python.sh function as proper Python CLI[/+] on Dec 2, 2024
  2. added
    type-bugAn unexpected behavior, bug, or error
    on Dec 2, 2024
  3. added a commit that references this issue on Dec 5, 2024
  4. added 2 commits that reference this issue on Dec 5, 2024
  5. added 2 commits that reference this issue on Dec 9, 2024
  6. added 3 commits that reference this issue on Jan 8, 2025
  7. added 3 commits that reference this issue on Mar 12, 2025
  8. added a commit that references this issue on Mar 13, 2025
  9. added a commit that references this issue on Mar 17, 2025
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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions