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

systemd.py: Fallback for openpyn_path when not in PATH #290

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AbdealiLoKo
Copy link

Earlier we were assuming that openpyn_path was always found in the PATH
and we got that from shutil.which()
But if it is not found, we assume that the command being run right now
is the path to the executable.

Handles cases like:
sudo /bin/openpyn --init
where the user explicitly gives an abspath

Resolves: #289

Earlier we were assuming that openpyn_path was always found in the PATH
and we got that from shutil.which()
But if it is not found, we assume that the command being run right now
is the path to the executable.

Handles cases like:
    sudo /bin/openpyn --init
where the user explicitly gives an abspath
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.

shutil.which("openpyn") Failing with None
1 participant