New answers tagged

5

First, I'm pretty sure that it's impossible for os.chdir(path) to meaningfully apply different working directories per thread; and even if it were possible it would be a bad idea. subprocess supports a cwd parameter directly that you should use. If you were opening files yourself, you would want to make a semaphore where the lock only applies to the section ...


Top 50 recent answers are included