Skip to content
This repository was archived by the owner on Sep 3, 2021. It is now read-only.

Use shutil.which to find 'winetricks' instead of hardcoded path - #34

Closed
Matoking wants to merge 1 commit into
HunnyBon:masterfrom
Matoking:shutil_which
Closed

Matoking wants to merge 1 commit into
HunnyBon:masterfrom
Matoking:shutil_which

Conversation

@Matoking

@Matoking Matoking commented Nov 7, 2018

Copy link
Copy Markdown
Contributor

Fixes #28

Instead of looking for winetricks in hardcoded paths, just use user's $PATH environment variable to find the executable, just as a shell would intuitively do.

@lucifertdark

Copy link
Copy Markdown

What happens if the user doesn't have a $PATH environment variable set for winetricks?

@Matoking

Matoking commented Nov 8, 2018

Copy link
Copy Markdown
Contributor Author

What happens if the user doesn't have a $PATH environment variable set for winetricks?

If you mean that winetricks is installed in a location not found in $PATH, then you have to supply it manually using $WINETRICKS or add the needed path into $PATH. Otherwise protontricks will complain that it can't find winetricks.

@Matoking Matoking closed this Jan 25, 2019
@Matoking
Matoking deleted the shutil_which branch January 25, 2019 12:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants