Mar-31-2024, 07:16 PM
(Mar-31-2024, 05:39 PM)Gribouillis Wrote:(Mar-31-2024, 12:53 PM)SuchUmami Wrote: It is on windows. I use it to run scripts. Here is a screenshot of it:I don't have a Windows machine to try this because I don't use this OS, but you can launch a Cmd window to execute a python script, then switch to interative mode if you want, for example to launch myscript.py you could do approximately
import subprocess proc = subprocess.Popen(['cmd.exe', '/K', 'python', '-i', 'myscript.py'])With several similar lines, you could spawn several cmd windows at the same time, each running its own Python script and interpreter.
How would that look if I have these scripts to run:
exec(open(r'C:\Users\Chris\Python\Python Projects\websocket_bot3\websockets\websockets_spot.py').read())
exec(open(r'C:\Users\Chris\Python\Python Projects\websocket_bot3\avg_price\orderbook_data_feed.py').read())
exec(open(r'C:\Users\Chris\Python\Python Projects\websocket_bot3\avg_price\orderbook_processor_macro_flow.py').read())
exec(open(r'C:\Users\Chris\Python\Python Projects\websocket_bot3\websockets_alert.py').read())