Esempio n. 1
0
    def __init__(self, path_root_dir, platform, path_config):
        """ Set up paths and file objects to use. """

        self.df_paths = dftlib.make_df_paths(path_root_dir, platform)
        self.platform = platform
        self.config = json.loads(open(path_config, "r").read())
        self.workdir = self.config["paths"]["dirs"]["work"]
        self.pkg_list = path.join(self.workdir,
                self.config["paths"]["files"]["pkg_list"])
Esempio n. 2
0
    def __init__(self, path_root_dir, path_config):
        """ Set up paths and file objects to use. """

        self.config = json.loads(dftlib.read(path_config))
        self.path_defaults = self.config["paths"]["dirs"]["defaults"]

        self.df_paths = dftlib.make_df_paths(path_root_dir, "linux")
        self.path_inits = path.join(self.df_paths["init"], "init.txt")
        self.path_d_inits = path.join(self.df_paths["init"], "d_init.txt")

        self.inits = dftlib.read_lines(self.path_inits)
        self.d_inits = dftlib.read_lines(self.path_d_inits)