mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Get path to python binary based on executable
This commit is contained in:
parent
03aec37040
commit
e3a8279c01
1 changed files with 2 additions and 1 deletions
|
@ -2,6 +2,7 @@
|
|||
from __future__ import print_function
|
||||
|
||||
import sys
|
||||
import os
|
||||
import getopt
|
||||
|
||||
|
||||
|
@ -30,7 +31,7 @@ def display_help():
|
|||
|
||||
def main(argv):
|
||||
target = ''
|
||||
search = sys.exec_prefix
|
||||
search = os.path.dirname(sys.executable)
|
||||
replace = '..'
|
||||
try:
|
||||
opts, args = getopt.getopt(argv,
|
||||
|
|
Loading…
Add table
Reference in a new issue