diff --git a/project.py b/project.py index ed5b0e6c..45ecfe36 100644 --- a/project.py +++ b/project.py @@ -687,7 +687,7 @@ class Project(object): self.gitdir = gitdir.replace('\\', '/') self.objdir = objdir.replace('\\', '/') if worktree: - self.worktree = os.path.normpath(worktree.replace('\\', '/')) + self.worktree = os.path.normpath(worktree).replace('\\', '/') else: self.worktree = None self.relpath = relpath