From 7908f4b02a6262593a9d45d9aa8ab2b574549fa0 Mon Sep 17 00:00:00 2001 From: xxc Date: Mon, 12 Dec 2016 13:45:05 +0800 Subject: [PATCH] Update template.py --- boss/cli/template.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/boss/cli/template.py b/boss/cli/template.py index d7da689..6d2704d 100644 --- a/boss/cli/template.py +++ b/boss/cli/template.py @@ -259,7 +259,8 @@ def _walk_path(self, path): def copy(self, dest_basedir): self._populate_vars() - dest_basedir = fs.abspath(dest_basedir) + dest_basedir = fs.abspath(dest_basedir).replace("\\", "\\\\") + basedir = str(self.basedir).replace("\\", "\\\\") # first handle local files for tmpl_path in self._walk_path(self.basedir):