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)
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)
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()
def _create_dir(self): return create_dir( os.path.join(self.build_manager.output, self.identifier.owner, self.identifier.repository))
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))
def _create_dir(self): return create_dir(os.path.join(self.build_manager.output, self.identifier.owner, self.identifier.repository))
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))
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)
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.")