Commits

Luke Plant committed 2c843c3

Comment about dbus import

  • Participants
  • Parent commits 56e761f

Comments (0)

Files changed (2)

playerdo/backends/mpris.py

 from playerdo.backends.base import Player
 from playerdo.utils import DBusObject
 
+# Note that dbus is not imported at module level, to allow the
+# check_dependencies functionality to be able to report the missing dbus
+# dependency rather than get an ImportError
 
 def get_all_mpris_buses():
     import dbus

playerdo/backends/mpris2.py

 from playerdo.backends.base import Player
 from playerdo.utils import DBusObject, DBusProperties
 
+# Note that dbus is not imported at module level, to allow the
+# check_dependencies functionality to be able to report the missing dbus
+# dependency rather than get an ImportError
 
 def get_all_mpris_buses():
     import dbus