import tkinter as tk from tkinter import filedialog root = tk.Tk() root.withdraw() files = filedialog.askopenfilenames()