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

pur cannot be called as a python module #24

Closed
ssbarnea opened this issue Apr 10, 2019 · 2 comments
Closed

pur cannot be called as a python module #24

ssbarnea opened this issue Apr 10, 2019 · 2 comments

Comments

@ssbarnea
Copy link

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,....).

@alanhamlett
Copy link
Owner

Fixed with 9cd7243 and released in v5.2.2.

@ssbarnea
Copy link
Author

Thanks! This was quick and effective.

@ssbarnea ssbarnea changed the title pur cannot me called as a python module pur cannot be called as a python module Apr 10, 2019
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

2 participants