def module_file(module):
 name = module.__file__
 return (name[:(-1)] if name.endswith(u'.pyc') else name)

def module_file ( module ) : name = module . __file__ return ( name [ : ( - 1 ) ] if name . endswith ( u'.pyc' ) else name )
return the correct original file name of a module .