below code always gives me key error of values['-FOUT-'], I need to copy file from one directory to another with different name...values['-FOUT-'] is a key from Pysimplegui to get output directory path, can anyone please tell me what I'm doing wrong? note that if i put a normal string path in quotes it works but I wish to use key path from Pysimplegui , thanks.
shutil.copy2(r'.[PARS] Template Directory\PAR\test.xlsx', os.path.join(str(values['-FOUT-']),"file.xlsx"))