Browsing directory in python

3081
3
Jump to solution
12-20-2014 09:00 AM
YasirAl_husseinawi
New Contributor II

Hello, I am trying to make python add in tool to change the current workspace in ArcMap. Obviously I have made this tool in VBA in previous versions of ArcGis but, according to stopping VBA in the new versions I need to make this tool in python. However, this tool asks the user to select a specific directory using browse folder window. Any body know what is the python code that makes the browse folder window. Thanks 

0 Kudos
1 Solution

Accepted Solutions
YasirAl_husseinawi
New Contributor II

I found it. its The pythonaddins module which can be used to Open a dialog box to choose one or more GIS datasets.

View solution in original post

0 Kudos
3 Replies
DanPatterson_Retired
MVP Emeritus

you can check the arcpy.da.walk functionality to see if it will help

0 Kudos
YasirAl_husseinawi
New Contributor II

Thank you Dan. Its useful for me but I need to show a widow from which the user can select a directory to be the current workspace.

0 Kudos
YasirAl_husseinawi
New Contributor II

I found it. its The pythonaddins module which can be used to Open a dialog box to choose one or more GIS datasets.

0 Kudos