core: fix imports

This commit is contained in:
Marek Marczykowski-Górecki 2014-06-25 15:23:27 +02:00
parent 479ac1e42d
commit 9205c5c054
3 changed files with 4 additions and 5 deletions

View File

@ -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

View File

@ -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:

View File

@ -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