Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I haven't tried this myself, but you could probably save yourself the wrapper script and execute your script directly by adding a shebang pointing to the Python executable from your virtual environment.

printf '%s\n%s\n' "#!path/to/venv/bin/python3" "$(cat path/to/app.py)" > /usr/local/bin/myscript



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: