def __init__(self, app_main): """ :param str app_main: the file name, such as "network.tcp_echo" :return: """ CradlepointAppBase.__init__(self, app_main) return
def __init__(self, app_main): """ :param str app_main: the file name, such as "serial.serial_echo" :return: """ CradlepointAppBase.__init__(self, app_main) return
def __init__(self, app_name): """ :param str app_name: the file name, such as "simple.hello_world_app" :return: """ CradlepointAppBase.__init__(self, app_name) return
def __init__(self): """Basic Init""" from cp_lib.load_settings_ini import copy_config_ini_to_json if not os.path.isfile("./config/settings.json"): # make sure we have at least a basic ./config/settings.json copy_config_ini_to_json() # we don't contact router for model/fw - will do in sanity_check, # IF the command means contact router CradlepointAppBase.__init__(self, call_router=False, log_name="target") self.action = self.ACTION_DEFAULT self.verbose = True # the one 'target' we are working on (if given) self.target_alias = None # the data loaded from the TARGET.INI file self.target_dict = None # the one computer interface we are targeting self.target_interface = DEF_INTERFACE # save IP related to target and/or the interface self.target_my_ip = None self.target_my_net = None self.target_router_ip = None return
def __init__(self): """Basic Init""" from cp_lib.load_settings_ini import copy_config_ini_to_json # make sure we have at least a basic ./config/settings.json # ALWAYS copy existing ./config/settings.ini over, which makes # CradlepointAppBase.__init__() happy copy_config_ini_to_json() # we don't contact router for model/fw - will do in sanity_check, IF # the command means contact router CradlepointAppBase.__init__(self, call_router=False, log_name="make") # 'attrib' are our internal pre-processed settings for MAKE use self.attrib = {} self.command = "make" self.action = self.ACTION_DEFAULT # these are in CradlepointAppBase # self.run_name = None # like "network/tcp_echo/__init__.py" # self.app_path = None # like "network/tcp_echo/", used to find files # self.app_name = None # like "tcp_echo" # self.mod_name = None # like "network.tcp_echo", used for importlib # self.settings = load_settings_json(self.app_path) # self.logger = get_recommended_logger(self.settings) # self.cs_client = init_cs_client_on_my_platform(self.logger, # self.settings) # should MAKE edit/change the [app][version] in setting.ini? self.increment_version = False # are we building for running on PC? Then don't include PIP add-ins self.ignore_pip = False # define LOGGING between DEBUG or INFO self.verbose = False self.last_url = None self.last_reply = None self.last_status = None self._last_uuid = None self._exclude = [] return