I'm trying to open a tex file from within python, tell the tex editor to run (manually you would press ctrl + T) and finally close the program.
So far I can only figure out how to open and close the program.
this is what I have so far...
os.spawnv(os.P_WAIT, r"C:\Program Files\MiKTeX 2.9\miktex\bin\miktex-texworks.exe", ('miktex-texworks' , dir_dst + temp3 + temp2 + '.tex'))