Skip to content

Windows: Bug in Interpreter Path Handling #245

@kummerer94

Description

@kummerer94

I am using shiv to create .pyz files for easy Python code execution on Windows. My usage is like this:

shiv --site-packages dist --compressed -p 'py -3.9' -o myapp.pyz -e myapp.main

For some reason, I am having issues with this now on Windows 11 with the newest python version / python launcher installed (Python Launcher for Windows Version 3.12.0):

C:\Users\Me\Downloads>myapp.pyz
Unable to create process using 'C:\Users\Me\Downloads\py -3.9 "C:\Users\Me\Downloads\myapp.pyz" ': The system cannot find the file specified.

Any help or direction with this would be greatly appreciated as I am not sure what to make of this. It seems like the path to the interpreter is prefixed with the current directory. Can I stop this from happening?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions