I want to pass the two variables to another python file, i dont want to start it as a sub process.
I want the two processes to run apart as file1 has alot of more calculations to do and cannot wait for file2's operations to complete.
FILE1.PY
include os
name="one"
status="on"
os.system('F:\PythonSub\file2.py' name status)
FILE2.PY
include sys
name=sys.argv[0]
send=sys.argv[1]
print(send, name)
The above code returns
send=sys.argv[1]
IndexError: list index out of range
What am i doing wrong?