diff --git a/tools/python/Makefile b/tools/python/Makefile index 6fa4d5b00e..7dfc45948d 100644 --- a/tools/python/Makefile +++ b/tools/python/Makefile @@ -63,8 +63,8 @@ install: install-messages install-dtd $(PYTHON_PREFIX_ARG) --root="$(DESTDIR)" --force install-dtd: all - $(INSTALL_DIR) $(DESTDIR)$(SHAREDIR) - $(INSTALL_DATA) xen/xm/create.dtd $(DESTDIR)$(SHAREDIR) + $(INSTALL_DIR) $(DESTDIR)$(SHAREDIR)/xen + $(INSTALL_DATA) xen/xm/create.dtd $(DESTDIR)$(SHAREDIR)/xen install-messages: all set -e; if which $(MSGFMT) >/dev/null ; then \ diff --git a/tools/python/xen/xm/xenapi_create.py b/tools/python/xen/xm/xenapi_create.py index 4c0177b4aa..e56be76393 100644 --- a/tools/python/xen/xm/xenapi_create.py +++ b/tools/python/xen/xm/xenapi_create.py @@ -78,7 +78,7 @@ class xenapi_create: def __init__(self): self.DEFAULT_STORAGE_REPOSITORY = get_default_SR() - self.dtd = join(SHAREDIR, "create.dtd") + self.dtd = join(SHAREDIR, "xen", "create.dtd") def create(self, filename=None, document=None, skipdtd=False): """