Refactoring const to constants, to provide for lxml docbook namespaces.
[treecutter.git] / treecutter / directory.py
index edbdee1ba4422ec84c59cfff70f1a1cee7360ee7..dc60c379718e4a016c5fecc55eeb75610c5def31 100644 (file)
@@ -2,7 +2,7 @@
 import os
 import fnmatch
 from amara import bindery
-import treecutter.const as const
+import treecutter.constants as const
 
 class Directory():
     """Class containing the state of the directory with articles"""
@@ -15,7 +15,7 @@ class Directory():
             for filename in filenames:
                 if fnmatch.fnmatch(filename, '*.xml'):
                     file_ = os.path.join(dirname,filename)
-                    doc = bindery.parse(file_, prefixes=PREFIXES)
+                    doc = bindery.parse(file_, prefixes=const.PREFIXES)
                     title = doc.xml_select(u'/db:article/db:info/db:title')
                     menu  = doc.xml_select(u'/db:article/db:info/db:titleabbrev')
                     if title and menu: