Skip to content

Create cache dir with string #367

@SKernchen

Description

@SKernchen

At the Moment the HermesContext requires a Path. In the Past we made it optional and converted path or string to Path.
In https://github.com/softwarepub/hermes/blob/feature/153-refactor-datamodel/src/hermes/model/context_manager.py#L48

def __init__(self, project_dir: t.Optional[Path] = None):
        """
        Create a new context for the given project dir.

        :param project_dir: The root directory of the project.
                            If nothing is given, the current working directory is used.
        """

        #: Base dir for the hermes metadata cache (default is `.hermes` in the project root).
        self.hermes_dir = Path(project_dir or '.') / self.hermes_cache_name

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions