Commits

Byron Clark committed 71a2418

Make pyxdg optional.

Comments (0)

Files changed (1)

 import gio
 import pynotify
 
-from xdg.BaseDirectory import xdg_config_home
+try:
+    from xdg.BaseDirectory import xdg_config_home
+except ImportError:
+    xdg_config_home = os.path.expanduser('~/.config')
 
 import udiskie.device
 import udiskie.match