mirror of
https://github.com/n00mkrad/flowframes.git
synced 2026-02-24 04:00:49 +01:00
Extension method for adding (preprending) PATH dirs to proc
This commit is contained in:
@@ -52,5 +52,10 @@ namespace Flowframes.Extensions
|
||||
ResumeThread(pOpenThread);
|
||||
}
|
||||
}
|
||||
|
||||
public static void AddPath(this ProcessStartInfo psi, string path)
|
||||
{
|
||||
psi.EnvironmentVariables["PATH"] = $"{path.Trim(';')}{System.IO.Path.PathSeparator}{psi.EnvironmentVariables["PATH"]}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user