#!/usr/bin/env bash

SOURCE()
{
    local module="$1"
    local file="${MODULEDIR}/${module}"

    if [[ ! -f "$file" ]]; then
        qarma --error \
            --title="${APP_WITH_VER}" \
            --text="Could not find module:\n\n<b>${module}</b>"
        return 1
    fi

    source "$file"
}
