Returns the relative path from the root directory of the project

        We only store the paths relative to the root directory of the project.
        This method gives you this path from a path that is accessible from the
        current working directory

        Parameters
        ----------
        path: str
            The original path accessible from the current working directory
        project: str
            The project to use. If None, the :attr:`projectname` attribute is
            used
        root: str
            If not None, the root directory of the project

        Returns
        -------
        str
            The path relative from the root directory

def relpath(self, path, project=None, root=None):
        """Returns the relative path from the root directory of the project

        We only store the paths relative to the root directory of the project.
        This method gives you this path from a path that is accessible from the
        current working directory

        Parameters
        ----------
        path: str
            The original path accessible from the current working directory
        project: str
            The project to use. If None, the :attr:`projectname` attribute is
            used
        root: str
            If not None, the root directory of the project

        Returns
        -------
        str
            The path relative from the root directory"""
        if root is None:
            root = self.config.projects[project or self.projectname]['root']
        return osp.relpath(path, root)