pymel.tools.mel2py.resolvePath

resolvePath(melobj, recurse=False, exclude=(), melPathOnly=False, basePackage='')

if passed a directory, get all mel files in the directory if passed a file, ensure it is a mel file if passed a procedure name, find its file

Returns tuples of the form (moduleName, melfile).