-
Notifications
You must be signed in to change notification settings - Fork 5
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
23 changed files
with
424 additions
and
1,218 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*.pyc |
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,23 +1,21 @@ | ||
# -*- coding: utf-8 -*- | ||
# | ||
# Copyright (C) 2012-2015 bendikro [email protected] | ||
# | ||
# Based on work by: | ||
# Copyright (C) 2009 Camillo Dell'mour <[email protected]> | ||
# Copyright (C) 2012-2015 bendikro [email protected] | ||
# | ||
# Basic plugin template created by: | ||
# Copyright (C) 2008 Martijn Voncken <[email protected]> | ||
# Copyright (C) 2007-2009 Andrew Resch <[email protected]> | ||
# Copyright (C) 2009 Damien Churchill <[email protected]> | ||
# | ||
# This file is part of YaRSS2 and is licensed under GNU General Public License 3.0, or later, with | ||
# This file is part of IfaceWatch and is licensed under GNU General Public License 3.0, or later, with | ||
# the additional special exception to link portions of this program with the OpenSSL library. | ||
# See LICENSE for more details. | ||
# | ||
|
||
import sys | ||
|
||
import pkg_resources | ||
|
||
from deluge.plugins.init import PluginInitBase | ||
|
||
import ifacewatch.util.logger | ||
|
@@ -30,21 +28,21 @@ def load_libs(): | |
for name in egg.get_entry_map("ifacewatch.libpaths"): | ||
ep = egg.get_entry_info("ifacewatch.libpaths", name) | ||
location = "%s/%s" % (egg.location, ep.module_name.replace(".", "/")) | ||
sys.path.append(location) | ||
log.info("Appending to sys.path: '%s'" % location) | ||
if location not in sys.path: | ||
sys.path.append(location) | ||
|
||
|
||
class CorePlugin(PluginInitBase): | ||
def __init__(self, plugin_name): | ||
load_libs() | ||
from core import Core as CorePluginClass | ||
from .core import Core as CorePluginClass | ||
self._plugin_cls = CorePluginClass | ||
super(CorePlugin, self).__init__(plugin_name) | ||
|
||
|
||
class GtkUIPlugin(PluginInitBase): | ||
class Gtk3UIPlugin(PluginInitBase): | ||
def __init__(self, plugin_name): | ||
load_libs() | ||
from gtkui.gtkui import GtkUI as GtkUIPluginClass | ||
from .gtk3ui.gtkui import GtkUI as GtkUIPluginClass | ||
self._plugin_cls = GtkUIPluginClass | ||
super(GtkUIPlugin, self).__init__(plugin_name) | ||
super(Gtk3UIPlugin, self).__init__(plugin_name) |
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
Oops, something went wrong.