diff options
author | TinWoodman92 <chrhodgden@gmail.com> | 2023-05-26 17:20:07 -0500 |
---|---|---|
committer | TinWoodman92 <chrhodgden@gmail.com> | 2023-05-26 17:20:07 -0500 |
commit | 715bef71c082349c9b19b09e03bcdddd68a9398a (patch) | |
tree | 3a07c30523b413a7c26daa3fdd523793b31217ff | |
parent | 75db2c567ab6c705180b611626ff19f541fa3ddc (diff) |
Added Python to Python launcher.
-rw-r--r-- | launcher_py.py | 17 |
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") + |