Browse for Folder in Python

Can code be written in the Python Editor that will allow the user to browse for a folder and capture the directory path? I’m trying to import a directory of dxf files into Rhino and need a way to have the user pick the path first.

I am a newbee to coding in Python so please take that into consideration when you respond.

Thanks for the help.

Eric

I just answered my own question. Found the answer here: BrowseForFolder alternative for more efficient browsing?