[py3] Use absolute imports of "xsd" and "xsd2yams" modules
authorDenis Laxalde <denis.laxalde@logilab.fr>
Wed, 02 Oct 2019 11:46:27 +0200
changeset 3035 d496f4739032
parent 3034 05022af75eae
child 3036 56b3e27c5127
[py3] Use absolute imports of "xsd" and "xsd2yams" modules
cubicweb_seda/xsd2concepts.py
cubicweb_seda/xsd2entities.py
cubicweb_seda/xsd2uicfg.py
cubicweb_seda/xsd2yams.py
--- a/cubicweb_seda/xsd2concepts.py	Tue Oct 01 15:45:40 2019 +0200
+++ b/cubicweb_seda/xsd2concepts.py	Wed Oct 02 11:46:27 2019 +0200
@@ -21,7 +21,7 @@
 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')
--- a/cubicweb_seda/xsd2entities.py	Tue Oct 01 15:45:40 2019 +0200
+++ b/cubicweb_seda/xsd2entities.py	Wed Oct 02 11:46:27 2019 +0200
@@ -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)
 
--- a/cubicweb_seda/xsd2uicfg.py	Tue Oct 01 15:45:40 2019 +0200
+++ b/cubicweb_seda/xsd2uicfg.py	Wed Oct 02 11:46:27 2019 +0200
@@ -23,8 +23,8 @@
 
 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',
--- a/cubicweb_seda/xsd2yams.py	Tue Oct 01 15:45:40 2019 +0200
+++ b/cubicweb_seda/xsd2yams.py	Wed Oct 02 11:46:27 2019 +0200
@@ -24,7 +24,7 @@
 
 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'])