async def ask_directory_async():
root = tk.Tk()
root.withdraw()
directory = await tkinter_asyncio.async_run(tk.filedialog.askdirectory, master=root)
return directory
async def main():
directory = await ask_directory_async()
print(directory)
asyncio.run(main())