aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTinWoodman92 <chrhodgden@gmail.com>2023-05-26 17:20:07 -0500
committerTinWoodman92 <chrhodgden@gmail.com>2023-05-26 17:20:07 -0500
commit715bef71c082349c9b19b09e03bcdddd68a9398a (patch)
tree3a07c30523b413a7c26daa3fdd523793b31217ff
parent75db2c567ab6c705180b611626ff19f541fa3ddc (diff)
Added Python to Python launcher.
-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")
+