def getmodulename(path):
 info = getmoduleinfo(path)
 if info:
  return info[0]

def getmodulename ( path ) : info = getmoduleinfo ( path ) if info : return info [ 0 ]
return the module name for a given file .