Get path to python binary based on executable

This commit is contained in:
twangboy 2018-01-03 10:19:09 -07:00
parent 03aec37040
commit e3a8279c01
No known key found for this signature in database
GPG key ID: 93FF3BDEB278C9EB

View file

@ -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,