I have a folder with several spectra in it. And I wrote a program which fits Lorentzian absorption peaks to the spectra. For this the Python scipt must be in the same folder and then it reads its own path and detects the spectrum files. After doubleclicking the scipt it fits the peaks to all spectrum files in the folder.
Now I want to improve the program a bit. I don't want to have the script file in the same folder as the measurement data, and I want other people to be able to use the program easily. For this I need a method with which I can drag and drop the spectrum files into a window or similar. The scipt should only read the path and the filenames of the files. Which I can implement in my working script.
What is the best approach for such a program?