def opendir_dialog(caption, path):
 options = (QtWidgets.QFileDialog.ShowDirsOnly | QtWidgets.QFileDialog.DontResolveSymlinks)
 return compat.getexistingdirectory(parent=active_window(), caption=caption, basedir=path, options=options)

def opendir_dialog ( caption , path ) : options = ( QtWidgets . QFileDialog . ShowDirsOnly | QtWidgets . QFileDialog . DontResolveSymlinks ) return compat . getexistingdirectory ( parent = active_window ( ) , caption = caption , basedir = path , options = options )
prompts for a directory path .