Skip to content

Conversation

joshcangit
Copy link

Add support for Windows, WSL, Termux and Wayland on Linux.
The which command is deprecated in debianutils (5.0-1).
Use a python function instead for POSIX compatibility.

Add support for Windows, Termux and Wayland on Linux.
The which command is deprecated in debianutils (5.0-1).
Use a python function instead for POSIX compatibility.
@joshcangit
Copy link
Author

This adds changes from #262 except pyperclip.
I couldn't get Suplemon to work with pyperclip.
This isn't tested on Windows or WSL but I think it should work.

Also, I want to reiterate.
Debian maintainers planned to remove which.
Sadly, it seems they might not backtrack on that decision.
Termux also uses the same debianutils package.
That's why I replaced the get_output() function to keep supporting Debian and other Debian-based distros just in case.

The imp module has been deprecated in 3.4 and remove in 3.12
Function for load_source is taken from the importlib documentation
Importing a source file directly
That function renamed from import_from_path
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.

1 participant