X-Git-Url: http://git.demorecorder.com/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=xcbgen%2Fmatcher.py;h=6e45b236c414fac562dc64e09b9c53cd2e8848c6;hb=d0b88e5119a93436ac6eb5b604e2743cd3c43a3c;hp=b2d9b8b479efbd815e0f64cbee36e15c4610b93f;hpb=7820273c4b00209d5ace8cbfdb1400728e15c158;p=free-sw%2Fxcb%2Fproto diff --git a/xcbgen/matcher.py b/xcbgen/matcher.py index b2d9b8b..6e45b23 100644 --- a/xcbgen/matcher.py +++ b/xcbgen/matcher.py @@ -9,14 +9,15 @@ we do not create a new type object, we just record the existing one under a new from os.path import join from xml.etree.cElementTree import parse -import state -from types import * +from xcbgen.xtypes import * def import_(node, module, namespace): ''' For imports, we load the file, create a new namespace object, execute recursively, then record the import (for header files, etc.) ''' + # To avoid circular import error + from xcbgen import state new_file = join(namespace.dir, '%s.xml' % node.text) new_root = parse(new_file).getroot() new_namespace = state.Namespace(new_file)