Esempio n. 1
0
    def setup_config(self, extra_args):
        temp_dir = tempfile.gettempdir()

        main.load_plugins()

        args = {"logs_dir": os.path.join(temp_dir, "logs"),
                "source_dir": os.path.join(temp_dir, "source"),
                "build_dir": os.path.join(temp_dir, "build"),
                "install_dir": os.path.join(temp_dir, "install"),
                "state_dir": os.path.join(temp_dir, "state")}

        args.update(extra_args)

        config.setup(**args)