try tiramisu3 before tiramisu

This commit is contained in:
Emmanuel Garette 2020-08-08 11:03:06 +02:00
parent 4eb42e4290
commit d3670c6476
3 changed files with 7 additions and 7 deletions

View File

@ -16,11 +16,11 @@ 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
except:
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,7 @@
try:
from tiramisu import DynOptionDescription
except:
from tiramisu3 import DynOptionDescription
except:
from tiramisu import DynOptionDescription
from .utils import normalize_family

View File

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