Skip to content

Commit

Permalink
fix devtools stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
nxtum committed Oct 21, 2024
1 parent fd403a4 commit ac9e189
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ThunderDevTools/ThunderDevTools.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import os
import subprocess
import argparse
import sys

CURRENT_DIR = os.path.dirname(os.path.abspath(__file__))
THUNDER_TOOLS_DIR = os.path.dirname(CURRENT_DIR)
Expand Down Expand Up @@ -39,7 +40,7 @@ def run_script(script):
try:
script_path = scripts[script]
full_path = os.path.join(THUNDER_TOOLS_DIR, script_path)
subprocess.run([python_distribution(), full_path], check=True, text=True, stderr=subprocess.PIPE)
subprocess.run([python_distribution(), full_path], check=True, text=True, stderr=sys.stderr, stdout=sys.stdout)
print("Success")
except subprocess.CalledProcessError as e:
print(f"Error running the script: {e.stderr}")
Expand Down

0 comments on commit ac9e189

Please sign in to comment.