I have tried using
#!/bin/bash
python ScriptA.py &
python ScriptB.py &
to run both scripts at the same time but it always returns "Invalid Syntax" with ScriptA even though all python files are in the same folder.
File that runs both scripts:
def song():
user = input()
if user == "Chance":
python ScriptA.py &
python ScriptB.py &
else:
print("Error")
The solutions i found so far, such as putting that script in one line, doesn't work as the error still shows.
--------------------------EDIT--------------------------
Both scripts run fine individually however, all the solutions you have provided still run sequentially. Script A is a video that plays via OpenCV and Script B is a song that plays via playsound.
Script