def getmodulename(path):
    info = getmoduleinfo(path)
    if info: return info[0]
Return the module name for a given file, or None.
dataset/ETHPy150Open cournape/Bento/bento/compat/inspect.py/getmodulename