Skip to content

Commit

Permalink
Fix jeffknupp#359 - Windows logging output has raw ANSI sequences
Browse files Browse the repository at this point in the history
Colorama appears to already be installed from other dependencies.
  • Loading branch information
clach04 committed Feb 8, 2024
1 parent 715500f commit 7787a77
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sandman2/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
services automatically from existing databases."""

import argparse
from colorama import just_fix_windows_console
from sandman2 import get_app


Expand Down Expand Up @@ -53,6 +54,7 @@ def main():
default=False)


just_fix_windows_console() # safe to run on non-Windows
args = parser.parse_args()
app = get_app(args.URI, read_only=args.read_only, schema=args.schema)
if args.enable_cors:
Expand Down

0 comments on commit 7787a77

Please sign in to comment.