sugarsdk/modgen.py
def generate(self):
        """
        Generate a module (runner or state).
        """
        mod_path = self._get_module_path()
        if self._cli_args.type == "runner":
            self._create_runner_tree(mod_path)
            print("Runner module has been generated to", mod_path)
        elif self._cli_args.type == "state":
            self._create_state_tree(mod_path)
            print("State module has been generated to", mod_path)

        self._add_inits_over(mod_path)

        Generate a module (runner or state).
        
Generate a module (runner or state).
Generate a module ( runner or state ) .
def generate(self):
        mod_path = self._get_module_path()
        if self._cli_args.type == "runner":
            self._create_runner_tree(mod_path)
            print("Runner module has been generated to", mod_path)
        elif self._cli_args.type == "state":
            self._create_state_tree(mod_path)
            print("State module has been generated to", mod_path)
        self._add_inits_over(mod_path)
def generate ( self ) : mod_path = self . _get_module_path ( ) if self . _cli_args . type == "runner" : self . _create_runner_tree ( mod_path ) print ( "Runner module has been generated to" , mod_path ) elif self . _cli_args . type == "state" : self . _create_state_tree ( mod_path ) print ( "State module has been generated to" , mod_path ) self . _add_inits_over ( mod_path )
Generate a module (runner or state).
Generate a module ( runner or state ) .
"""
        Generate a module (runner or state).
        """
self