parameters: (apps_folder, func, yes, args)
docstring: Call a function inside apps_folder
docstring_summary: Call a function inside apps_folder
docstring_tokens: Call a function inside apps_folder
function: def call(apps_folder, func, yes, args):
      """Call a function inside apps_folder"""
      kwargs = json.loads(args)
      install_args(dict(apps_folder=apps_folder, yes=yes))
      apps_folder_name = os.path.basename(os.environ["PY4WEB_APPS_FOLDER"])
      app_name = func.split(".")[0]
      module, name = ("%s.%s" % (apps_folder_name, func)).rsplit(".", 1)
      env = {}
      exec("from %s import %s" % (module, name), {}, env)
      request.app_name = app_name
      env[name](**kwargs)
function_tokens: def call ( apps_folder , func , yes , args ) : kwargs = json . loads ( args ) install_args ( dict ( apps_folder = apps_folder , yes = yes ) ) apps_folder_name = os . path . basename ( os . environ [ "PY4WEB_APPS_FOLDER" ] ) app_name = func . split ( "." ) [ 0 ] module , name = ( "%s.%s" % ( apps_folder_name , func ) ) . rsplit ( "." , 1 ) env = { } exec ( "from %s import %s" % ( module , name ) , { } , env ) request . app_name = app_name env [ name ] ( * * kwargs )