diff --git a/install b/install index 68f2f82..7a57299 100755 --- a/install +++ b/install @@ -1,6 +1,8 @@ #! /usr/bin/env python3 import os +import sys + from string import Template from subprocess import check_call @@ -12,7 +14,8 @@ CURRENT_DIR = os.path.dirname(os.path.realpath(__file__)) EXEC_PATH = os.path.join(CURRENT_DIR, EXEC) SERVICE_TEMPLATE = os.path.join(CURRENT_DIR, SERVICE) SERVICE_FILE = os.path.join(SYSTEM_DIR, SERVICE) -EXEC_START = f'python3 {EXEC}' +PYTHON = sys.executable +EXEC_START = f'{PYTHON} {EXEC}' with open(SERVICE_TEMPLATE) as f: serviceTemplate = Template(f.read())