mirror of
https://github.com/erjiang/huion-keys.git
synced 2026-03-23 21:54:53 +03:00
remove sys, just use return instead
This commit is contained in:
parent
abb78fe810
commit
4afc1a2d51
@ -1,6 +1,5 @@
|
|||||||
#!/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
|
||||||
@ -33,7 +32,7 @@ def main():
|
|||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
if args.rules:
|
if args.rules:
|
||||||
make_rules()
|
make_rules()
|
||||||
sys.exit(0)
|
return 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