Example #1
0
    def __init__(self, path: PathType, **kwargs):
        """Create a new instance

        :param str path: Path to file"""
        if (not globals().get("auto_convert_to_pathlib", False)
                or locals().get("auto_convert_to_pathlib", False)):
            from . import auto_convert_to_pathlib

        current_path = auto_convert_to_pathlib(path)

        self.path = current_path

        MemoryStorage.__init__(self)
        JSONStorage.__init__(self, current_path, **kwargs)