summaryrefslogtreecommitdiffstats
path: root/lib/python/qmk/questions.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python/qmk/questions.py')
-rw-r--r--lib/python/qmk/questions.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/python/qmk/questions.py b/lib/python/qmk/questions.py
index 27f43ac1e9..865c6bbdc5 100644
--- a/lib/python/qmk/questions.py
+++ b/lib/python/qmk/questions.py
@@ -1,7 +1,12 @@
"""Functions to collect user input.
"""
-from milc import cli, format_ansi
+from milc import cli
+
+try:
+ from milc import format_ansi
+except ImportError:
+ from milc.ansi import format_ansi
def yesno(prompt, *args, default=None, **kwargs):