mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
fixes saltstack/salt#61937 tiamat binary configurable pypath
This commit is contained in:
parent
a9372ba4c8
commit
2ef6765e67
2 changed files with 4 additions and 1 deletions
1
changelog/61937.added
Normal file
1
changelog/61937.added
Normal file
|
@ -0,0 +1 @@
|
|||
Add configurable tiamat pip pypath location
|
4
run.py
4
run.py
|
@ -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")
|
||||
|
|
Loading…
Add table
Reference in a new issue