Directory chooser in Tk

Aaron J Reichow reic0024 at
Tue Nov 16 16:16:44 CET 1999

>  >  |I need a dialog similar to the askopenfilename() dialog, but for
>  >  |directories.  Is there such a beast?
>  > 

I needed the same thing.  I just wound up using askopenfilename(),
choosing any file in the directory I wanted, and then using os.path.split()
to dump the name of the file and retain the path in another variable.  Not
elegant, but it works.


More information about the Python-list mailing list