Files
FWS-Kitty/kitty_tests/__init__.py
T
BlackAngelTV 7e7d249099 chore: import official kitty sources from upstream
Bring the kovidgoyal/kitty codebase in as the base of FWS-Kitty,
vendored at upstream commit 91fb38a without its git history.
2026-11-04 11:20:47 +01:00

12 lines
336 B
Python

#!/usr/bin/env python
# License: GPL v3 Copyright: 2016, Kovid Goyal <kovid at kovidgoyal.net>
import os
is_ci = os.environ.get('CI') == 'true'
def in_isolated_test_env() -> bool:
"""Whether HOME and the XDG dirs point at the throwaway directory created by env_for_python_tests()."""
return 'KT_ORIGINAL_HOME' in os.environ