def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) Arjuna.init( "/Users/rahulverma/Documents/github_tm/arjuna/arjuna-samples/workspace/arjex-new" ) self.__automator = None self.__config = None
def execute(self, arg_dict): for parent in self.parents: parent.process(arg_dict) from arjuna.tpi import Arjuna project_root_dir = arg_dict["project.root.dir"] del arg_dict["project.root.dir"] Arjuna.init(project_root_dir, CliArgsConfig(arg_dict)) import sys proj_dir = Arjuna.get_central_arjuna_option(ArjunaOption.PROJECT_ROOT_DIR).as_str() sys.path.append(proj_dir + "/..") py_3rdparty_dir = Arjuna.get_central_config().get_arjuna_option_value(ArjunaOption.ARJUNA_EXTERNAL_IMPORTS_DIR).as_str() sys.path.append(py_3rdparty_dir) self.unitee = Arjuna.get_unitee_instance() self.unitee.load_testdb()
def init_arjuna(): from arjuna.tpi import Arjuna return Arjuna.init("/Users/rahulverma/Documents/github_tm/arjuna/arjuna-samples/workspace/arjex_unittest")