Skip to content

Commit

Permalink
Different colors for terminals
Browse files Browse the repository at this point in the history
  • Loading branch information
nemene21 committed Jul 10, 2024
1 parent f7f2ea0 commit 4a52f1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MakefileGenerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,9 @@ def get_filename(string):

def run():
if WEB:
server_res = subprocess.Popen(["cmd.exe", "/c", "start", "cmd.exe", "/k", "cd /d build/web_build && python -m http.server"])
server_res = subprocess.Popen(["cmd.exe", "/c", "start", "cmd.exe", "/k", "color 2 && cd /d build/web_build && python -m http.server"])
time.sleep(2)
ngrok_res = subprocess.Popen(["cmd.exe", "/c", "start", "cmd.exe", "/k", "ngrok", "http", "8000"], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
ngrok_res = subprocess.Popen(["cmd.exe", "/c", "start", "cmd.exe", "/k", "color 4 && ngrok http 8000"], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
webbrowser.open("http://localhost:8000")
else:
result = subprocess.run("Build.exe", shell=True, cwd="build")
Expand Down

0 comments on commit 4a52f1e

Please sign in to comment.