Skip to content

Commit

Permalink
Make the CLI compatible with Windows OS (#43)
Browse files Browse the repository at this point in the history
* Make compatible with Windows OS
  • Loading branch information
Hizuru3 authored Mar 24, 2024
1 parent ee700d6 commit 81e36ce
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions cutlet/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@
import fileinput
import sys

# Don't print an error on SIGPIPE
from signal import signal, SIGPIPE, SIG_DFL
if sys.platform != "win32":
# Don't print an error on SIGPIPE
from signal import signal, SIGPIPE, SIG_DFL

signal(SIGPIPE, SIG_DFL)


def main():
signal(SIGPIPE, SIG_DFL)
system = sys.argv[1] if len(sys.argv) > 1 else 'hepburn'
system = sys.argv[1] if len(sys.argv) > 1 else "hepburn"

katsu = Cutlet(system)

Expand Down

0 comments on commit 81e36ce

Please sign in to comment.