def start(): # Call function action_kwargs = config.getActionArguments() actions.call(config.action, action_kwargs)
def start(): action_func = globals()[config.action] # Function reference action_kwargs = config.getActionArguments( ) # non-config arguments when calling zeronet.py action_func(**action_kwargs)
def start(): action_func = globals()[config.action] # Function reference action_kwargs = config.getActionArguments() # non-config arguments when calling zeronet.py action_func(**action_kwargs)
def start(): # Call function func = getattr(actions, config.action, None) action_kwargs = config.getActionArguments() func(**action_kwargs)