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

Support more platforms #272

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Support more platforms #272

wants to merge 3 commits into from

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