Unhappily my last post was marked as duplicate and my problem wasn't solved. So I've to phrase it a little bit different.
Below you can see my main-file(SP_Test.py) which calls another python script with an argument.
#!/usr/bin/python
import subprocess
channels = input("")
subprocess.call(['python', '/Users/christian/pyth/term/helloworld.py', str(channels)])
print("Hello")
And here you can see my processing file which gets called by the main-file and should work in the background (The original file processes continuously audio inputs).
#!/usr/bin/python
import sys
print("Hello World!")
print(sys.argv[1])
while(1):
x=1
Now the problem is that I want to run this while-loop in the background while my main program (SP_Test.py) continues. So far it gets stuck in the loop and won't come back, so that it will never print "Hello".
I didn't find a solution in this forum what works for me. So plz help me. Thanks.
PS: Is it also possible to call the "helloworld.py" in a conda environment from the main-file?