def detect_version():
    """Emit GIPS' software version.  May be overridden for testing purposes.

    To override version.py, put a desired version string in the environment
    variable GIPS_OVERRIDE_VERSION."""
    return os.environ.get('GIPS_OVERRIDE_VERSION', version.__version__)