예제 #1
0
파일: fetcher.py 프로젝트: ferhat1234/proje
 def __init__(self):
     self.cfg = config_manager
     self.log = pb_logging.logger.getChild("Fetcher")
     self.prefix = self.cfg.get_active_prefix()
     if self.prefix.prefix_dir is not None:
         self.inventory = self.prefix.inventory
         self.src_dir = self.prefix.src_dir
     from pybombs import fetchers
     self.available = fetchers.get_all()
예제 #2
0
 def __init__(self):
     self.cfg = config_manager
     self.log = pb_logging.logger.getChild("Fetcher")
     self.prefix = self.cfg.get_active_prefix()
     if self.prefix.prefix_dir is not None:
         self.inventory = self.prefix.inventory
         self.src_dir = self.prefix.src_dir
     from pybombs import fetchers
     self.available = fetchers.get_all()
예제 #3
0
 def __init__(self):
     self.cfg = config_manager
     self.log = pb_logging.logger.getChild("Fetcher")
     self.prefix = self.cfg.get_active_prefix()
     if self.prefix.prefix_dir is not None:
         self.inventory = self.prefix.inventory
         self.src_dir = self.prefix.src_dir
         if not os.path.isdir(self.src_dir):
             self.log.warning("Source dir does not exist! [{}]".format(self.src_dir))
             try:
                 os.mkdir(self.src_dir)
             except:
                 raise PBException("Unable to create the source directory!")
     from pybombs import fetchers
     self.available = fetchers.get_all()
예제 #4
0
 def __init__(self):
     self.cfg = config_manager
     self.log = pb_logging.logger.getChild("Fetcher")
     self.prefix = self.cfg.get_active_prefix()
     if self.prefix.prefix_dir is not None:
         self.inventory = self.prefix.inventory
         self.src_dir = self.prefix.src_dir
         if not os.path.isdir(self.src_dir):
             self.log.warning("Source dir does not exist! [{}]".format(
                 self.src_dir))
             try:
                 os.mkdir(self.src_dir)
             except:
                 raise PBException("Unable to create the source directory!")
     from pybombs import fetchers
     self.available = fetchers.get_all()