Skip to content

Commit

Permalink
Handle different installation directories for parts of configobj
Browse files Browse the repository at this point in the history
  • Loading branch information
martinmake committed Dec 22, 2020
1 parent 74807f5 commit 8fa1cc4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions todoman/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,12 @@
import xdg.BaseDirectory
from configobj import ConfigObj
from configobj import flatten_errors
from configobj.validate import Validator
from configobj.validate import VdtValueError
try:
from configobj.validate import Validator
from configobj.validate import VdtValueError
except ImportError:
from configobj import Validator
from configobj import VdtValueError

from todoman import __documentation__

Expand Down

0 comments on commit 8fa1cc4

Please sign in to comment.