I am writing a script which is supposed to read all files from a specific location and do some manipulation and then write back to another folder and not the parent directory. This is what I am trying :
for i in np.arange(0, len(json_files),1):
os.chdir(r"D:\Ashutosh 3D\Experiments\AnakinLogs\buildmanagerlogs")
instance = anakinLog(json_files[i])
os.chdir(r"D:\Ashutosh 3D\Experiments\AnakinLogs\buildmanagerlogs\csv_output")
instance.parseAllJson()
I am explicitly setting this to return to the home directory but is there a better python way of handling this situation ? Also, how can I add parallelism to this code to run even faster ?