def getmodulename(path):
    """Return the module name for a given file, or None."""
    info = getmoduleinfo(path)
    if info: return info[0]
Return the module name for a given file, or None.
debugger/src/_pydev_imps/_pydev_inspect.py