Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

venv creation fails when sys.executable == '' #943

Open
NorthIsUp opened this issue Dec 9, 2024 · 0 comments
Open

venv creation fails when sys.executable == '' #943

NorthIsUp opened this issue Dec 9, 2024 · 0 comments

Comments

@NorthIsUp
Copy link

from venv

    # Add a `micropython` binary in $PATH pointing to this binary.
    if hasattr(sys, "executable"):
        os.system("cp {} {}".format(sys.executable, venv_bin_path + os.sep + "micropython"))

but on my local copy this happens

MicroPython v1.24.0 on 1980-01-01; darwin [GCC 4.2.1] version
Use Ctrl-D to exit, Ctrl-E for paste mode
>>> import sys
>>> sys.executable
''
>>>

so maybe it is best to add and sys.executable to the check?

    if hasattr(sys, "executable") and sys.executable:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant