def module_modified_time(module):
 module = asmodule(module)
 name = module.__name__
 module_filename = module.__file__
 provider = pkg_resources.get_provider(name)
 if provider.loader:
  m_time = os.stat(provider.loader.archive)[stat.ST_MTIME]
 else:
  basename = os.path.basename(module_filename)
  path = pkg_resources.resource_filename(name, basename)
  m_time = os.stat(path)[stat.ST_MTIME]
 return (module_filename, m_time)

def module_modified_time ( module ) : module = asmodule ( module ) name = module . __name__ module_filename = module . __file__ provider = pkg_resources . get_provider ( name ) if provider . loader : m_time = os . stat ( provider . loader . archive ) [ stat . ST_MTIME ] else : basename = os . path . basename ( module_filename ) path = pkg_resources . resource_filename ( name , basename ) m_time = os . stat ( path ) [ stat . ST_MTIME ] return ( module_filename , m_time )
return the modules source filename and modified time as a tuple .