rules: Fix circular import (#1673)
This commit is contained in:
parent
f291321f8b
commit
2229d64a7c
|
@ -33,7 +33,6 @@ import keysyms.keysymdef as _keysymdef
|
||||||
import psutil
|
import psutil
|
||||||
|
|
||||||
from gi.repository import Gdk, GLib
|
from gi.repository import Gdk, GLib
|
||||||
from solaar.ui.config_panel import change_setting as _change_setting
|
|
||||||
from yaml import add_representer as _yaml_add_representer
|
from yaml import add_representer as _yaml_add_representer
|
||||||
from yaml import dump_all as _yaml_dump_all
|
from yaml import dump_all as _yaml_dump_all
|
||||||
from yaml import safe_load_all as _yaml_safe_load_all
|
from yaml import safe_load_all as _yaml_safe_load_all
|
||||||
|
@ -998,6 +997,9 @@ class Set(Action):
|
||||||
return 'Set: ' + ' '.join([str(a) for a in self.args])
|
return 'Set: ' + ' '.join([str(a) for a in self.args])
|
||||||
|
|
||||||
def evaluate(self, feature, notification, device, status, last_result):
|
def evaluate(self, feature, notification, device, status, last_result):
|
||||||
|
# importing here to avoid circular imports
|
||||||
|
from solaar.ui.config_panel import change_setting as _change_setting
|
||||||
|
|
||||||
if len(self.args) < 3:
|
if len(self.args) < 3:
|
||||||
return None
|
return None
|
||||||
if _log.isEnabledFor(_INFO):
|
if _log.isEnabledFor(_INFO):
|
||||||
|
|
Loading…
Reference in New Issue