forked from Ryochan7/sc-controller
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
86 additions
and
87 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,30 @@ | ||
#!/usr/bin/env python3 | ||
import os, sys, signal, argparse | ||
import signal | ||
import sys | ||
|
||
def sigint(*a): | ||
print("\n*break*") | ||
sys.exit(0) | ||
def main() -> None: | ||
def sigint(*a): | ||
print("\n*break*") | ||
sys.exit(0) | ||
|
||
if __name__ == "__main__": | ||
signal.signal(signal.SIGINT, sigint) | ||
if __name__ == "__main__": | ||
signal.signal(signal.SIGINT, sigint) | ||
|
||
import gi | ||
gi.require_version('Gtk', '3.0') | ||
gi.require_version('Rsvg', '2.0') | ||
gi.require_version('GdkX11', '3.0') | ||
|
||
from scc.tools import init_logging | ||
from scc.paths import get_share_path | ||
init_logging() | ||
|
||
import gi | ||
gi.require_version('Gtk', '3.0') | ||
gi.require_version('Rsvg', '2.0') | ||
gi.require_version('GdkX11', '3.0') | ||
|
||
from scc.tools import init_logging | ||
from scc.paths import get_share_path | ||
init_logging() | ||
|
||
from scc.osd.message import Message | ||
m = Message() | ||
if not m.parse_argumets(sys.argv): | ||
sys.exit(1) | ||
m.run() | ||
sys.exit(m.get_exit_code()) | ||
from scc.osd.message import Message | ||
m = Message() | ||
if not m.parse_argumets(sys.argv): | ||
sys.exit(1) | ||
m.run() | ||
sys.exit(m.get_exit_code()) | ||
|
||
if __name__ == "__main__": | ||
main() |