Source code for omfit_classes.omfit_path
try:
    # framework is running
    from .startup_choice import *
except ImportError as _excp:
    # class is imported by itself
    if (
        'attempted relative import with no known parent package' in str(_excp)
        or 'No module named \'omfit_classes\'' in str(_excp)
        or "No module named '__main__.startup_choice'" in str(_excp)
    ):
        from startup_choice import *
    else:
        raise
__all__ = ['OMFITpath']
[docs]class OMFITpath(OMFITobject):
    r"""
    OMFIT class used to interface with files
    :param filename: filename passed to OMFITobject class
    :param \**kw: keyword dictionary passed to OMFITobject class
    """
    def __init__(self, filename, **kw):
        kw['file_type'] = 'file'
        OMFITobject.__init__(self, filename, **kw)