calcrepo/repos/__init__.py
def createRepoObjects():
	"""Imports each 'plugin' in this package and creates a repo file from it"""
	repositories = {}
	repodir = os.path.join(getScriptLocation())
	for importer, name, ispkg in pkgutil.iter_modules([repodir]):
		module = importer.find_module(name).load_module(name)
		repo_name = module.name
		if module.enabled:
			repositories[repo_name] = module.getRepository()
	
	return repositories
Imports each 'plugin' in this package and creates a repo file from it
Imports each 'plugin' in this package and creates a repo file from it
Imports each ' plugin ' in this package and creates a repo file from it
def createRepoObjects():
	repositories = {}
	repodir = os.path.join(getScriptLocation())
	for importer, name, ispkg in pkgutil.iter_modules([repodir]):
		module = importer.find_module(name).load_module(name)
		repo_name = module.name
		if module.enabled:
			repositories[repo_name] = module.getRepository()
	return repositories
def createRepoObjects ( ) : repositories = { } repodir = os . path . join ( getScriptLocation ( ) ) for importer , name , ispkg in pkgutil . iter_modules ( [ repodir ] ) : module = importer . find_module ( name ) . load_module ( name ) repo_name = module . name if module . enabled : repositories [ repo_name ] = module . getRepository ( ) return repositories
Imports each 'plugin' in this package and creates a repo file from it
Imports each ' plugin ' in this package and creates a repo file from it
"""Imports each 'plugin' in this package and creates a repo file from it"""