Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def load_manager():
if not hasattr(settings, '_manager'):
from memorious.logic.manager import CrawlerManager
settings._manager = CrawlerManager()
if settings.CONFIG_PATH:
settings._manager.load_path(settings.CONFIG_PATH)
return settings._manager
def load_manager():
if not hasattr(settings, '_manager'):
from memorious.logic.manager import CrawlerManager
settings._manager = CrawlerManager()
if settings.CONFIG_PATH:
settings._manager.load_path(settings.CONFIG_PATH)
return settings._manager
def load_manager():
if not hasattr(settings, '_manager'):
from memorious.logic.manager import CrawlerManager
settings._manager = CrawlerManager()
if settings.CONFIG_PATH:
settings._manager.load_path(settings.CONFIG_PATH)
return settings._manager
def load_manager():
if not hasattr(settings, '_manager'):
from memorious.logic.manager import CrawlerManager
settings._manager = CrawlerManager()
if settings.CONFIG_PATH:
settings._manager.load_path(settings.CONFIG_PATH)
return settings._manager
def load_manager():
if not hasattr(settings, '_manager'):
from memorious.logic.manager import CrawlerManager
settings._manager = CrawlerManager()
if settings.CONFIG_PATH:
settings._manager.load_path(settings.CONFIG_PATH)
return settings._manager
def load_manager():
if not hasattr(settings, '_manager'):
from memorious.logic.manager import CrawlerManager
settings._manager = CrawlerManager()
if settings.CONFIG_PATH:
settings._manager.load_path(settings.CONFIG_PATH)
return settings._manager