openpyn-nordvpn icon indicating copy to clipboard operation
openpyn-nordvpn copied to clipboard

systemd.py: Fallback for openpyn_path when not in PATH

Open AbdealiLoKo opened this issue 2 years ago • 0 comments

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: https://github.com/jotyGill/openpyn-nordvpn/issues/289

AbdealiLoKo avatar Jan 11 '22 04:01 AbdealiLoKo