mirror of
https://github.com/erjiang/huion-keys.git
synced 2026-03-23 21:54:53 +03:00
use sys.exit() to force buffer flush on exit
This commit is contained in:
parent
eac30ea30e
commit
abb78fe810
@ -1,5 +1,6 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
import os
|
import os
|
||||||
|
import sys
|
||||||
import time
|
import time
|
||||||
import signal
|
import signal
|
||||||
import argparse
|
import argparse
|
||||||
@ -32,7 +33,7 @@ def main():
|
|||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
if args.rules:
|
if args.rules:
|
||||||
make_rules()
|
make_rules()
|
||||||
os._exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
global CONFIG_FILE_PATH
|
global CONFIG_FILE_PATH
|
||||||
if args.config is None:
|
if args.config is None:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user