I am using python with some external program API in order to automate some stuff. Have in mind that these "extpro" and "--file" and "--dont-breakaway-from-job" are built in commands that I have to use, my code looks like this:
send = os.system('extpro --file '(os.path.join(base_dir, extpr_path))' --dont-breakaway-from-job')
Error that I am getting is on the --dont-breakaway-from-job, saying Expected ")" pylance.
But when I try this there is no error:
send = os.system('extpro --file "C:/user/program/run.exe" --dont-breakaway-from-job')
Anyone have idea what might be behind this behavior? Is there a way maybe to split whole command into two or three?
Any advice is welcome, thanks!