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

fix: Handle execution from pip install and as script correctly #33

Merged
merged 1 commit into from
Feb 5, 2024

Conversation

jimisola
Copy link
Contributor

@jimisola jimisola commented Feb 5, 2024

The previous solution using "ImportError" will work if maven artifact is installed as a pip package but execution directly as a script (since the import will work). Using __package__ allows us to check how the initial execution was.

@hamnis hamnis merged commit a801796 into hamnis:main Feb 5, 2024
1 check passed
@hamnis
Copy link
Owner

hamnis commented Feb 5, 2024

thanks, need release ?

@jimisola
Copy link
Contributor Author

jimisola commented Feb 5, 2024

No rush personally. But, it is a small bug fix whom hardly any users will notice unless they 1) have maven artifact installed a pip package 2) run the main.py directly from git clone

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

Successfully merging this pull request may close these issues.

2 participants