From 715bef71c082349c9b19b09e03bcdddd68a9398a Mon Sep 17 00:00:00 2001 From: TinWoodman92 Date: Fri, 26 May 2023 17:20:07 -0500 Subject: Added Python to Python launcher. --- launcher_py.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 launcher_py.py diff --git a/launcher_py.py b/launcher_py.py new file mode 100644 index 0000000..ae85727 --- /dev/null +++ b/launcher_py.py @@ -0,0 +1,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") + -- cgit v1.2.3