Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion boss/cli/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,11 @@ def copy(self, dest_basedir):

# first handle local files
for tmpl_path in self._walk_path(self.basedir):
dest_path = fs.abspath(re.sub(self.basedir, dest_basedir, tmpl_path))
# Fix "sre_constants.error: bogus escape: '\\U'" on Windows
basedir = self.basedir.replace('\\', '/')
destdir = dest_basedir.replace('\\', '/')
tmpl_path = tmpl_path.replace('\\', '/')
dest_path = fs.abspath(re.sub(basedir, destdir, tmpl_path))
self._copy_path(tmpl_path, dest_path)

# second handle external files
Expand Down