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 typing import Union, List, Optional
from argparse import ArgumentParser, Namespace, SUPPRESS, _HelpAction from argparse import ArgumentParser, Namespace, SUPPRESS, _HelpAction
from tiramisu.error import PropertiesOptionError
try: try:
from tiramisu import Config from tiramisu import Config
from tiramisu.error import PropertiesOptionError
except ImportError: except ImportError:
Config = None Config = None
from tiramisu_json_api.error import PropertiesOptionError
try: try:
from tiramisu_json_api import Config as ConfigJson from tiramisu_json_api import Config as ConfigJson
if Config is None: if Config is None: