Jun-17-2020, 04:31 PM
(Jun-17-2020, 03:48 PM)snippsat Wrote:I fixed the data part to input_dir = 'C:/data'>>> import os >>> >>> input_dir = 'C:data' # There is a problem here >>> output_dir = os.path.join(input_dir, 'output') >>> output_dir 'C:data\\output' >>> >>> # Fix >>> input_dir = 'C:\\data' >>> output_dir = os.path.join(input_dir, 'output') >>> output_dir 'C:\\data\\output'
This still doesn't fix the issue I'm having when trying to do a save as. The script runs fine till the save part where I want to use the excel file "outputnames" which has a list of names I want to use. I don't want it to save with the same file name that initially get's read in. So I have a list in an excel file that has the names that I want each file to be saved as.