Dec-22-2017, 08:20 AM
(Dec-22-2017, 07:38 AM)wavic Wrote:Thanks for your reply. My functions run like thisimport threading def csv2xlsx(file_name): # procces the csv # save the xlsx _ = [threading.Thread(target=csv2xlsx, args=(file_name,)).start() for file_name in files_list]Something like that? I've never used threading module but I tried to put together something looking at the docs a minute ago. Hope this will work.
def PR01() # process file PR01() PR02() PR03() PR04()The reason why I am using this approach is because each function is somewhat unique and on each function I receive feedback on how long it took to run. The largest file takes 11 minutes to generate for example. To clarify ; in each function :
1.) file might be be renamed
2.) file might be converted to XLSX
3.) file might be receive a header
4.) file might be autofit