# Path: will/utils.py
# def show_valid(valid_str):
#     puts(colored.green(u"✓ %s" % valid_str))
# 
# def warn(warn_string):
#     puts(colored.yellow("! Warning: %s" % warn_string))
# 
# def note(warn_string):
#     puts(colored.cyan("- Note: %s" % warn_string))
# 
# def error(err_string):
#     puts(colored.red("ERROR: %s" % err_string))


import os
import sys
    import uuid
    import time
    import random
    import hashlib
                import config
                        import config
from will.utils import show_valid, warn, note, error
from clint.textui import puts, indent
from six.moves.urllib import parse
from six.moves import input

    # If HIPCHAT_SERVER is set, we need to change the USERNAME slightly
    # for XMPP to work.
    if "HIPCHAT_SERVER" in settings:
        settings["USERNAME"] = "{user}@{host}".\
            format(user=settings["USERNAME"].split("@")[0],
                   host=settings["HIPCHAT_SERVER"])
    else:
        settings["HIPCHAT_SERVER"] = "api.hipchat.com"

    # Import from config
    if not quiet:
        puts("Importing config.py... ")
    with indent(2):
        try:
            had_warning = False
            try:
            except ImportError:
                # Missing config.py.  Check for config.py.dist
                if os.path.isfile("config.py.dist"):
                    confirm = input(
                        "Hi, looks like you're just starting up!\nI didn't find a config.py, but I do see config.py.dist here. Want me to use that? (y/n) "
                    ).lower()
                    if confirm in ["y", "yes"]:
                        print("Great! One moment.\n\n")
                        os.rename("config.py.dist", "config.py")
                    else:
                        print("Ok.  I can't start without one though. Quitting now!")
                        sys.exit(1)
                else:

# Path: will/utils.py
# def show_valid(valid_str):
#     puts(colored.green(u"✓ %s" % valid_str))
# 
# def warn(warn_string):
#     puts(colored.yellow("! Warning: %s" % warn_string))
# 
# def note(warn_string):
#     puts(colored.cyan("- Note: %s" % warn_string))
# 
# def error(err_string):
#     puts(colored.red("ERROR: %s" % err_string))


# Path: will/settings.py
import os
import sys
    import uuid
    import time
    import random
    import hashlib
                import config
                        import config
from will.utils import show_valid, warn, note, error
from clint.textui import puts, indent
from six.moves.urllib import parse
from six.moves import input


    # If HIPCHAT_SERVER is set, we need to change the USERNAME slightly
    # for XMPP to work.
    if "HIPCHAT_SERVER" in settings:
        settings["USERNAME"] = "{user}@{host}".\
            format(user=settings["USERNAME"].split("@")[0],
                   host=settings["HIPCHAT_SERVER"])
    else:
        settings["HIPCHAT_SERVER"] = "api.hipchat.com"

    # Import from config
    if not quiet:
        puts("Importing config.py... ")
    with indent(2):
        try:
            had_warning = False
            try:
            except ImportError:
                # Missing config.py.  Check for config.py.dist
                if os.path.isfile("config.py.dist"):
                    confirm = input(
                        "Hi, looks like you're just starting up!\nI didn't find a config.py, but I do see config.py.dist here. Want me to use that? (y/n) "
                    ).lower()
                    if confirm in ["y", "yes"]:
                        print("Great! One moment.\n\n")
                        os.rename("config.py.dist", "config.py")
                    else:
                        print("Ok.  I can't start without one though. Quitting now!")
                        sys.exit(1)
                else:

                    error("I'm missing my config.py file. Usually one comes with the installation - maybe it got lost?")