aboutsummaryrefslogtreecommitdiff
path: root/libxcb/xcb-proto/xcbgen/matcher.py
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2011-05-03 12:48:26 +0000
committermarha <marha@users.sourceforge.net>2011-05-03 12:48:26 +0000
commitcc93496bdbb3e7aea51033ece75fa85cfb5845d4 (patch)
tree4346be8524d6ff90f89a403dc53c8519eacdf2e5 /libxcb/xcb-proto/xcbgen/matcher.py
parent34f1ddbb272a5ad55f56d54e2f861da6360db04f (diff)
downloadvcxsrv-cc93496bdbb3e7aea51033ece75fa85cfb5845d4.tar.gz
vcxsrv-cc93496bdbb3e7aea51033ece75fa85cfb5845d4.tar.bz2
vcxsrv-cc93496bdbb3e7aea51033ece75fa85cfb5845d4.zip
xkeyboard libxcb pixman mesa git update 2 May 2011
Diffstat (limited to 'libxcb/xcb-proto/xcbgen/matcher.py')
-rw-r--r--libxcb/xcb-proto/xcbgen/matcher.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/libxcb/xcb-proto/xcbgen/matcher.py b/libxcb/xcb-proto/xcbgen/matcher.py
index e7958fa44..6e45b236c 100644
--- a/libxcb/xcb-proto/xcbgen/matcher.py
+++ b/libxcb/xcb-proto/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 xtypes 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)