Пример #1
0
 def _copy_missing_default(self):
     if not os.path.exists(self.path):
         create_dir(self._root)
         source_path = os.path.join(constants.PATH_MODULE,
                                    constants.DIRECTORY_CONFIG,
                                    self.DEFAULT_CONFIG)
         shutil.copyfile(source_path, self.path)
Пример #2
0
 def _copy_missing_default(self):
     if not os.path.exists(self.path):
         create_dir(self._root)
         source_path = os.path.join(constants.PATH_MODULE,
                                    constants.DIRECTORY_CONFIG,
                                    self.DEFAULT_LOGGER)
         shutil.copyfile(source_path, self.path)
Пример #3
0
 def __init__(self, threaded, lazy, explore):
     self.threaded = threaded
     self.lazy = lazy
     self.build_queue = dict()
     self.documents = dict()
     self.output = os.path.join(constants.PATH_USER,
                                constants.DIRECTORY_OUTPUT)
     create_dir(self.output)
     if explore:
         self.explore_documents()
Пример #4
0
 def __init__(self, threaded, lazy, explore):
     self.threaded = threaded
     self.lazy = lazy
     self.build_queue = dict()
     self.documents = dict()
     self.output = os.path.join(constants.PATH_USER,
                                constants.DIRECTORY_OUTPUT)
     create_dir(self.output)
     if explore:
         self.explore_documents()
Пример #5
0
 def _create_dir(self):
     return create_dir(
         os.path.join(self.build_manager.output, self.identifier.owner,
                      self.identifier.repository))
Пример #6
0
 def _create_dir(self):
     return create_dir(
         os.path.join(self.temp_directory, self.build_request.owner,
                      self.build_request.repository,
                      self.build_request.commit))
Пример #7
0
 def _create_dir(self):
     return create_dir(os.path.join(self.build_manager.output,
                                    self.identifier.owner,
                                    self.identifier.repository))
Пример #8
0
 def _create_dir(self):
     return create_dir(os.path.join(self.temp_directory,
                                    self.build_request.owner,
                                    self.build_request.repository,
                                    self.build_request.commit))
Пример #9
0
 def _create_missing_output(self):
     output_path = os.path.join(constants.PATH_USER, self.LOG_DIR)
     if not os.path.exists(output_path):
         create_dir(output_path)
Пример #10
0
 def _create_missing_default(self):
     if not os.path.exists(self._path):
         create_dir(self._root)
         file = open(self._path, 'w+')
         file.close()
         logging.info("No api key file found, empty file created.")
Пример #11
0
 def _create_missing_output(self):
     output_path = os.path.join(constants.PATH_USER,
                                self.LOG_DIR)
     if not os.path.exists(output_path):
         create_dir(output_path)
Пример #12
0
 def _create_missing_default(self):
     if not os.path.exists(self._path):
         create_dir(self._root)
         file = open(self._path, 'w+')
         file.close()
         logging.info("No api key file found, empty file created.")