When writing a Python code, I could write os.system('some cmd command'). How could I make it run from a specific directory (without using a 'cd' command)?
The reason I'm trying to do this is because my cmd command isn't in my cmd PATH, and therefore is recognized only in its own directory.
I'm looking for something similar to this:
p = Popen ('file.bat', cwd = 'location')
stdout, stderr = p.communicate()
just without having to create a .bat file for it...