From e2380d23fc94462a1fc60a4b6c43301a784b273d Mon Sep 17 00:00:00 2001 From: Mike Cifelli <1836280-mike-cifelli@users.noreply.gitlab.com> Date: Tue, 25 May 2021 12:00:54 -0400 Subject: [PATCH] Use absolute path to python executable --- install | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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())