Compare commits

..

No commits in common. "0da8b868ac4c37338836184d246b6423e7c1cc94" and "a2e8b5dad4798885844ad4a10e4ad27869a16a83" have entirely different histories.

4 changed files with 7 additions and 14 deletions

View File

@ -15,12 +15,8 @@ from os.path import dirname, join, isfile
from Cheetah.Template import Template as ChtTemplate
from Cheetah.NameMapper import NotFound as CheetahNotFound
try:
from tiramisu import Config
from tiramisu.error import PropertiesOptionError
except:
from tiramisu3 import Config
from tiramisu3.error import PropertiesOptionError
from tiramisu import Config
from tiramisu.error import PropertiesOptionError
from .config import patch_dir, variable_namespace
from .error import FileNotFound, TemplateError

View File

@ -1,7 +1,4 @@
try:
from tiramisu import DynOptionDescription
except:
from tiramisu3 import DynOptionDescription
from tiramisu import DynOptionDescription
from .utils import normalize_family

View File

@ -47,10 +47,7 @@ class TiramisuReflector:
funcs_path,
):
self.storage = ElementStorage()
self.storage.text = ["try:",
" from tiramisu import *",
"except:",
" from tiramisu3 import *",
self.storage.text = ["from tiramisu import *",
"from rougail.tiramisu import ConvertDynOptionDescription",
"import imp",
f"func = imp.load_source('func', '{funcs_path}')",

View File

@ -5,6 +5,9 @@ from os import listdir, mkdir
from json import dump, load, dumps, loads
from tiramisu import Config
from rougail.xml_compare import xml_compare
from rougail.error import DictConsistencyError
from rougail.config import dtdfilename
dico_dirs = 'tests/flattener_dicos'