I am trying to write a short program that would pass variables for a os.system(). Where the variables are defined as following:
code = 'code.py'
input_file = 'input.xxxx'
output_file = 'output.xxxx'
import os
os.system("python code input_file output_file")
The code works when i specify it as
import os
os.system("python code.py input.xxxx output.xxxx")
But not with variables. Your help will be greatly appreciated.