I have two folders, 1 and 2. Each folder has a Python file with the same name: 220_beta_1e-2_47_53ND.py. How do I run both the Python files simultaneously on different consoles? I mostly use Spyder.
            Asked
            
        
        
            Active
            
        
            Viewed 63 times
        
    0
            
            
         
    
    
        user19862793
        
- 169
- 6
- 
                    what is your operative system? also, you can just do it with a third script that starts 2 processes – Axeltherabbit Sep 13 '22 at 10:20
- 
                    I am on Windows. – user19862793 Sep 13 '22 at 10:21
1 Answers
0
            
            
        on powershell (replace XYZ with your python version)
 Invoke-Item C:\PythonXYZ\python.exe pathtoscript1; Invoke-Item C:\PythonXYZ\python.exe pathtoscript2; 
or rather create a third script in python that launches 2 processes
 
    
    
        Axeltherabbit
        
- 680
- 3
- 20
- 
                    Can you suggest how I can write a python script that launches 2 scripts? – user19862793 Sep 13 '22 at 14:54
- 
                    https://stackoverflow.com/questions/3595685/start-python-script-as-background-process-from-within-a-python-script – Axeltherabbit Sep 13 '22 at 15:15