I'm trying to create a pdf file from a latex file (some/directory/something.tex). It works but the pdf is not stored in the same directory as the latex File. After all it is stored in the directory where I execute the python script. Where can I change the location for saving the pdf?
proc = subprocess.Popen(['pdflatex', some/directory/something.tex])
proc.communicate()