aboutsummaryrefslogtreecommitdiff
path: root/launcher_py.py
blob: ae85727c192427bc2376fe84379035d6d539a2b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import os
from subprocess import *

print(os.getcwd())

tar_fil = os.path.join(os.getcwd(),'source_file.py')
print(tar_fil)
if os.path.exists(tar_fil):
	python_cmd = 'Python'
	run(
		f'{python_cmd} {tar_fil}',
		cwd = os.getcwd(),
		start_new_session = True
		)
	
print("end launcher")