Set PATH when running yay (fix #192)

Instead of causing an error when the Python in path is not the system Python, we prepend /usr/bin to
PATH and then run yay.
This commit is contained in:
Roey Darwish Dror
2019-08-15 09:15:35 +03:00
parent d552360ab6
commit 69dfcfe55a
3 changed files with 35 additions and 34 deletions

View File

@@ -31,10 +31,6 @@ pub enum ErrorKind {
#[cfg(target_os = "linux")]
UnknownLinuxDistribution,
#[fail(display = "Detected Python is not the system Python")]
#[cfg(target_os = "linux")]
NotSystemPython,
#[fail(display = "Process execution failure")]
ProcessExecution,