# -*- coding: utf-8 -*-
from __future__ import absolute_import
# set the warning format to be on a single line
import warnings as _warnings
from os import name as _name
from os.path import abspath as _abspath
from os.path import dirname as _dirname
from cobra import flux_analysis, io
from cobra.core import (
DictList, Gene, Metabolite, Model, Object, Reaction, Species)
from cobra.util import show_versions
__version__ = "0.13.3"
# set the warning format to be prettier and fit on one line
_cobra_path = _dirname(_abspath(__file__))
if _name == "posix":
_warning_base = "%s:%s \x1b[1;31m%s\x1b[0m: %s\n" # colors
else:
_warning_base = "%s:%s %s: %s\n"
_warnings.formatwarning = _warn_format