Use absolute path to python executable
This commit is contained in:
		
							parent
							
								
									c1ff46c96c
								
							
						
					
					
						commit
						e2380d23fc
					
				
							
								
								
									
										5
									
								
								install
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								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())
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user