def get_temp_dir():
    if is_windows():
        path = os.environ['TMP']
    else:
        path = "/tmp"

    return path
user data is idempotent
dataset/ETHPy150Open brunobraga/termsaver/termsaverlib/common.py/get_temp_dir--crossover with--dataset/ETHPy150Open enthought/traits/traits/etsconfig/tests/test_etsconfig.py/ETSConfigTestCase.test_user_data_is_idempotent