can use tiramisu-cmdline-parser without tiramisu

This commit is contained in:
Emmanuel Garette 2019-01-16 09:43:49 +01:00 committed by Emmanuel Garette
parent e2951f1a21
commit 694d9df04b

View file

@ -16,11 +16,12 @@
from typing import Union, List, Optional
from argparse import ArgumentParser, Namespace, SUPPRESS, _HelpAction
from tiramisu.error import PropertiesOptionError
try:
from tiramisu import Config
from tiramisu.error import PropertiesOptionError
except ImportError:
Config = None
from tiramisu_json_api.error import PropertiesOptionError
try:
from tiramisu_json_api import Config as ConfigJson
if Config is None: