mirror of
https://github.com/erjiang/huion-keys.git
synced 2026-06-13 14:30:50 +03:00
use sys.exit() to force buffer flush on exit
This commit is contained in:
+2
-1
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user