can use tiramisu-cmdline-parser without tiramisu

This commit is contained in:
Emmanuel Garette 2019-01-16 09:43:49 +01:00
parent c0f2e7d8dd
commit dc550d0e69

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: