From e901a564683c86b80f55967139fb3c199badc2f9 Mon Sep 17 00:00:00 2001 From: Ashik K Date: Mon, 10 Apr 2023 23:16:22 +0200 Subject: [PATCH] optimizations for PowerShell --- smartsh.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/smartsh.py b/smartsh.py index 4929043..f15722d 100755 --- a/smartsh.py +++ b/smartsh.py @@ -87,7 +87,10 @@ if is_in_teacher_mode == False and apioutput is not None: print("Executing command: " + apioutput) if colorize_output: print("\033[93m") - os.system(apioutput) + if tune_for_powershell: + os.system("powershell.exe -Command " + apioutput) + else: + os.system(apioutput) if colorize_output: print("\033[0m") else: