Skip to content

Commit 9fce66a

Browse files
authored
Merge pull request #4 from ibLeDy/delete-root-window
Ommit root window when asking for directory
2 parents f32e4c5 + 912ed4f commit 9fce66a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

folder-organizer.py

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import json
33
import sys
44
import os
5+
from tkinter import Tk
56
from tkinter import filedialog
67

78

@@ -21,6 +22,7 @@
2122

2223

2324
def get_path(last_path):
25+
Tk().withdraw()
2426
path = filedialog.askdirectory(initialdir=last_path)
2527
return path
2628

0 commit comments

Comments
 (0)