def evennia_version():
    """
    Get the Evennia version info from the main package.

    """
    version = "Unknown"
    try:
        import evennia
        version = evennia.__version__
    except ImportError:
        pass
    try:
        rev = check_output(
            "git rev-parse --short HEAD",
            shell=True, cwd=EVENNIA_ROOT, stderr=STDOUT).strip()
        version = (version, rev) % "%s (rev %s)"
    except (IOError, CalledProcessError):
        pass
    return version
dataset/ETHPy150Open evennia/evennia/evennia/server/evennia_launcher.py/evennia_version/swapped operands of `%`