fixes saltstack/salt#61937 tiamat binary configurable pypath

This commit is contained in:
nicholasmhughes 2022-04-09 10:15:23 -04:00 committed by Megan Wilhite
parent a9372ba4c8
commit 2ef6765e67
2 changed files with 4 additions and 1 deletions

1
changelog/61937.added Normal file
View file

@ -0,0 +1 @@
Add configurable tiamat pip pypath location

4
run.py
View file

@ -33,7 +33,9 @@ AVAIL = (
)
if not sys.platform.startswith("win"):
if "TIAMAT_PIP_PYPATH" in os.environ:
PIP_PATH = pathlib.Path(os.environ["TIAMAT_PIP_PYPATH"]).resolve()
elif not sys.platform.startswith("win"):
PIP_PATH = pathlib.Path(f"{os.sep}opt", "saltstack", "salt", "pypath")
else:
PIP_PATH = pathlib.Path(os.getenv("LocalAppData"), "salt", "pypath")