alanhamlett/pip-update-requirements

pur cannot be called as a python module

ssbarnea opened this issue · 2 comments

python -m pur ... should work the same way as pur ... as this calling method has great advantages as it assures the used of the correct python interpreter (multiple can be installed).

Implementing this is extreamly easy, all is needed is to assure you have a main.py file that looks like https://github.com/ansible/molecule/blob/master/molecule/__main__.py and python will load it.

This is not a new python features, it is fully supported on 2.7+ and is used my most other tools I know (tox, pytest, flake8,....).

Fixed with 9cd7243 and released in v5.2.2.

Thanks! This was quick and effective.