From fef9f21b28d3b59804fdd5db2bbb86e797051dab Mon Sep 17 00:00:00 2001 From: Renaud Paquay Date: Tue, 1 Nov 2016 18:28:01 -0700 Subject: [PATCH] Fix misplaced file separator string.replace call Project names are stored as path using the '/' file separator, and stored in a dictionary as keys. Change-Id: Ide40dfe840958ac0d46caae5f77f1a49d71c9d90 --- project.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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