[PATCH 03 of 17 seda] [py3] Use absolute imports of "xsd" and "xsd2yams" modules

Denis Laxalde denis.laxalde at logilab.fr
Wed Oct 2 16:06:31 CEST 2019


diff --git a/cubicweb_seda/xsd2concepts.py b/cubicweb_seda/xsd2concepts.py
index bab7044..652ae6e 100644
--- a/cubicweb_seda/xsd2concepts.py
+++ b/cubicweb_seda/xsd2concepts.py
@@ -21,7 +21,7 @@ used bits).
 import csv
 import os.path as osp
 
-from xsd import seda_xsd, un_camel_case
+from .xsd import seda_xsd, un_camel_case
 
 import sys
 sys.exit('broken until pyxst stop using a set for textual_content_values')
diff --git a/cubicweb_seda/xsd2entities.py b/cubicweb_seda/xsd2entities.py
index 27fb2a6..a2d9e67 100644
--- a/cubicweb_seda/xsd2entities.py
+++ b/cubicweb_seda/xsd2entities.py
@@ -17,8 +17,8 @@
 
 import json
 
-from xsd2yams import MULTIPLE_CHILDREN, CodeGenerator
-from xsd2uicfg import ordered_attributes
+from .xsd2yams import MULTIPLE_CHILDREN, CodeGenerator
+from .xsd2uicfg import ordered_attributes
 
 MULTIPLE_ETYPES = set(etype for etype, _ in MULTIPLE_CHILDREN)
 
diff --git a/cubicweb_seda/xsd2uicfg.py b/cubicweb_seda/xsd2uicfg.py
index 6869e6f..d93eafb 100644
--- a/cubicweb_seda/xsd2uicfg.py
+++ b/cubicweb_seda/xsd2uicfg.py
@@ -23,8 +23,8 @@ from six import text_type
 
 from cubicweb import neg_role, _
 
-from xsd import XSDM_MAPPING
-from xsd2yams import CodeGenerator
+from .xsd import XSDM_MAPPING
+from .xsd2yams import CodeGenerator
 
 
 FIRST_LEVEL_ETYPES = set(('SEDAArchiveTransfer',
diff --git a/cubicweb_seda/xsd2yams.py b/cubicweb_seda/xsd2yams.py
index eed2aee..111337e 100644
--- a/cubicweb_seda/xsd2yams.py
+++ b/cubicweb_seda/xsd2yams.py
@@ -24,7 +24,7 @@ except ImportError:
 
 from pyxst.xml_struct import graph_nodes
 
-from xsd import XSDMMapping, un_camel_case
+from .xsd import XSDMMapping, un_camel_case
 
 
 EXT_ETYPES = set(['AuthorityRecord', 'ConceptScheme', 'Concept'])



More information about the saem-devel mailing list