Use absolute path to python executable

This commit is contained in:
Mike Cifelli 2021-05-25 12:00:54 -04:00
parent c1ff46c96c
commit e2380d23fc
1 changed files with 4 additions and 1 deletions

View File

@ -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())