1. Luke Plant
  2. playerdo

Commits

Luke Plant  committed 2c843c3

Comment about dbus import

  • Participants
  • Parent commits 56e761f
  • Branches default

Comments (0)

Files changed (2)

File playerdo/backends/mpris.py

View file
  • Ignore whitespace
 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

File playerdo/backends/mpris2.py

View file
  • Ignore whitespace
 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