Bring the kovidgoyal/kitty codebase in as the base of FWS-Kitty, vendored at upstream commit 91fb38a without its git history.
12 lines
336 B
Python
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
|