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.
Fix scripts after pyproject.toml migration
- Loading branch information
Showing
13 changed files
with
48 additions
and
48 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
"""SC-Controller executables.""" |
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/usr/bin/env python3 | ||
import os | ||
import signal | ||
import sys | ||
|
||
|
||
def main() -> None: | ||
def sigint(*a): | ||
print("\n*break*") | ||
sys.exit(0) | ||
|
||
signal.signal(signal.SIGINT, sigint) | ||
|
||
import gi | ||
gi.require_version('Gtk', '3.0') | ||
gi.require_version('GdkX11', '3.0') | ||
gi.require_version('Rsvg', '2.0') | ||
|
||
from scc.paths import get_share_path | ||
from scc.tools import init_logging | ||
init_logging() | ||
|
||
from gi.repository import Gtk, GObject | ||
glades = os.path.join(get_share_path(), "glade") | ||
images = os.path.join(get_share_path(), "images") | ||
if Gtk.IconTheme.get_default(): | ||
Gtk.IconTheme.get_default().append_search_path(images) | ||
#GObject.threads_init() | ||
|
||
from scc.gui.app import App | ||
App(glades, images).run(sys.argv) | ||
|
||
if __name__ == "__main__": | ||
main() |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
#!/usr/bin/env python3 | ||
from scc.constants import SCButtons | ||
|
||
BUTTON_ORDER = ( | ||
|
This file was deleted.
Oops, something went wrong.