You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pyecoregen generates initializations of EReference.eType and EReference.eOpposite inside the init.py of each subpackage, which requires a lot of import from other packages, and increase the amount of circular dependencies.
Solution proposed : do those initializations only in the top pyEcoreCapella.init.py module
Implementation:
generate all those initializations in an intermediate file (called cross_init.inc) in each package submodule
at top level, create a init.inc with the import statements for each packages
at top level, create init.py by concatenation of top init.inc and the cross_init.inc of all the packages
attached is the templates (rename txt to tpl in pyecoregen) and the patch for ecore.py
pyecoregen generates initializations of EReference.eType and EReference.eOpposite inside the init.py of each subpackage, which requires a lot of import from other packages, and increase the amount of circular dependencies.
Solution proposed : do those initializations only in the top pyEcoreCapella.init.py module
Implementation:
attached is the templates (rename txt to tpl in pyecoregen) and the patch for ecore.py
cross_init.inc.tpl
package.py.tpl
ecore.py.patch
The text was updated successfully, but these errors were encountered: