numberly / flask2postman

:rocket: Generate a Postman collection from your Flask application
MIT License
148 stars 17 forks source link

Bad instance used in a virtualenv #4

Closed ramnes closed 8 years ago

ramnes commented 8 years ago

In a virtualenv, if the instance parameter is a valid import in a directory in .venv/src/, it will use that import rather than the expected import.

For exemple, if I have a file called "run.py" in my project directory (so project/run.py) and that project/.venv/src/random_lib/run.py exists, flask2postman run.app will try to import app from project/.venv/src/random_lib/run.py rather than from project/run.py.

I have no idea why this is happening, I need to investigate more.

ramnes commented 8 years ago

Fixed in bb369915007b13e83475e9719ab9e957479a6cb2. :smile: