mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Ensure venv usage
This commit is contained in:
parent
101a773df1
commit
c0354fc161
1 changed files with 2 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
|||
import os
|
||||
import sys
|
||||
|
||||
import pytest
|
||||
|
||||
|
@ -13,7 +14,7 @@ pytestmark = [
|
|||
]
|
||||
|
||||
SALT_CALL_BINARY = "salt-call"
|
||||
if os.environ.get("VIRTUAL_ENV"):
|
||||
if os.environ.get("VIRTUAL_ENV") and os.environ.get("VIRTUAL_ENV") in sys.executable:
|
||||
SALT_CALL_BINARY = f"{os.environ.get('VIRTUAL_ENV')}/bin/salt-call"
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue