core: fix imports
This commit is contained in:
parent
479ac1e42d
commit
9205c5c054
@ -29,7 +29,7 @@ import stat
|
||||
import sys
|
||||
import re
|
||||
|
||||
from qubes.qubes import QubesHVm,register_qubes_vm_class,xs,xc,dry_run
|
||||
from qubes.qubes import QubesHVm,register_qubes_vm_class,dry_run
|
||||
from qubes.qubes import QubesException,QubesVmCollection
|
||||
from qubes.qubes import system_path,defaults
|
||||
|
||||
|
@ -49,9 +49,9 @@ def tray_notify_error(msg, timeout = 3000):
|
||||
timeout, dbus_interface="org.freedesktop.Notifications")
|
||||
|
||||
def notify_error_qubes_manager(name, message):
|
||||
import dbus
|
||||
global system_bus
|
||||
if system_bus is None:
|
||||
import dbus
|
||||
system_bus = dbus.SystemBus()
|
||||
|
||||
try:
|
||||
@ -63,9 +63,9 @@ def notify_error_qubes_manager(name, message):
|
||||
pass
|
||||
|
||||
def clear_error_qubes_manager(name, message):
|
||||
import dbus
|
||||
global system_bus
|
||||
if system_bus is None:
|
||||
import dbus
|
||||
system_bus = dbus.SystemBus()
|
||||
|
||||
try:
|
||||
|
@ -22,8 +22,7 @@
|
||||
#
|
||||
#
|
||||
|
||||
from qubes import QubesVm,QubesException,QubesVmCollection
|
||||
from qubes import QubesVmClasses
|
||||
from qubes import QubesException
|
||||
from qubes import vmm
|
||||
from qubes import system_path,vm_files
|
||||
import sys
|
||||
|
Loading…
Reference in New Issue
Block a user