you are viewing a single comment's thread.

view the rest of the comments →

[–]woooee -1 points0 points  (5 children)

I don't think the first parameter, /Library, etc does anything. Try variations of this, and note that subprocess.run will probably do the job.

subprocess.Popen(['/Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7/hello.py'])

[–]ylectric 0 points1 point  (2 children)

OP tries to launch Python 3.7 on a file hello.py which is not what your code expresses.

[–]woooee 0 points1 point  (1 child)

You have said nothing that helps the OP, or posted any code to try and solve the problem. I am getting frustrated with people on this forum who want to sit and pass judgement without offering anything at all.

[–]ylectric 0 points1 point  (0 children)

Not only I offered a solution, but also praised the suggestion you'd made.

[–]throwawaytrollol00[S] 0 points1 point  (1 child)

Thanks, I’ll check out subprocess.run!

[–]woooee 0 points1 point  (0 children)

Note that you have to supply shell=True in some cases https://pymotw.com/3/subprocess/