bottlepy / bottle

bottle.py is a fast and simple micro-framework for python web-applications.
http://bottlepy.org/
MIT License
8.33k stars 1.46k forks source link

Reloader doesn't work with virtualenv .venv #1368

Closed oijkn closed 2 years ago

oijkn commented 2 years ago

Issue Summary When I activate the run(reloader=True) option from a virtual environment, like .venv, the bottle framework doesn't work.

Environment

To Reproduce Code to reproduce the behavior:

run(host="127.0.0.1", port=5000, debug=True, reloader=True)

Expected behavior That when we use a virtual environment, the Bottle framework can reload the code when it's modified.

Error /opt/bootle/.venv/bin/python: can't open file 'main': [Errno 2] No such file or directory

defnull commented 2 years ago

Cannot reproduce. How do you start your script?

defnull commented 2 years ago

Closed due to inactivity.