# -*- coding: utf-8 -*-
# Copyright (C) 2012 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause

from os.path import dirname, join


def support_file(filename, remote=False):
    if remote:
        return f"https://raw.githubusercontent.com/conda/conda/main/tests/conda_env/support/{filename}"
    return join(dirname(__file__), "support", filename)
