aboutsummaryrefslogtreecommitdiff
path: root/launcher_py.py
diff options
context:
space:
mode:
Diffstat (limited to 'launcher_py.py')
-rw-r--r--launcher_py.py17
1 files changed, 17 insertions, 0 deletions
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")
+