"""
********************************************************************************
* Name: gen_commands.py
* Author: Nathan Swain
* Created On: 2015
* Copyright: (c) Brigham Young University 2015
* License: BSD 2-Clause
********************************************************************************
"""
import os
from pathlib import Path
import string
import random

from conda.cli.python_api import run_command, Commands
from yaml import safe_load
from distro import linux_distribution
from jinja2 import Template

from django.conf import settings

from tethys_apps.utilities import get_tethys_home_dir, get_tethys_src_dir
from tethys_cli.cli_colors import write_error, write_info, write_warning

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "tethys_portal.settings")