python3.5 not opening a .py file
<p>Hello im having trouble opening a .py file using processes call in python 3.5.
ive have opened other files for example a text file using this method but with .py files it seems to just skip the command. Here is my code :</p>

<p><code>import subprocess
subprocess.call(['C:\\Users\\Edvin\\AppData\\Local\\Programs\\Python\\Python35-32\\pythonw.exe', 'C:\\Users\\Edvin\\Desktop\\test.py'])
print ("done")
</code></p>

<p>There is no error it is simply doing >>> then >>>done when test.py isnt even open. Is this even possible for python to open another python file?</p>

<p>the context of test.py is:</p>

<pre><code>print("hello world")
</code></pre>

<p>reply=input("Say hello!")</p>

<p>Try to use run instead of call, and you had a typo in your path.</p>

<pre><code>subprocess.run(['C:\\Users\\Edvin\\AppData\\Local\\Programs\\Python\\Python35-32\\python.exe', 'C:\\Users\\Edvin\\Desktop\\test.py'])
</code></pre>

python subprocess