def add_virtual_env_segment(powerline):
    env = os.getenv('VIRTUAL_ENV') or os.getenv('CONDA_ENV_PATH')
    if env is None:
        return

    env_name = os.path.basename(env)
    bg = Color.VIRTUAL_ENV_BG
    fg = Color.VIRTUAL_ENV_FG
    powerline.append(env_name % ' %s ', fg, bg)
dataset/ETHPy150Open milkbikis/powerline-shell/segments/virtual_env.py/add_virtual_env_segment/swapped operands of `%`