From 2607827c85eca5701a8d3915d1a8e037f2bef44f Mon Sep 17 00:00:00 2001 From: Lirian Su Date: Wed, 22 Apr 2020 12:21:16 +0800 Subject: [PATCH] fix: jinja use '/' even on windows --- sea/cmds.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sea/cmds.py b/sea/cmds.py index 0d76a9f..f7aa47a 100644 --- a/sea/cmds.py +++ b/sea/cmds.py @@ -108,6 +108,7 @@ def _gen_project(path, skip=set(), ctx={}): src = os.path.join(dirpath, fn) if src not in skip: relfn = os.path.relpath(src, TMPLPATH) + relfn = relfn.replace(os.path.sep, '/') dst = os.path.join(path, relfn) # create the parentdir if not exists os.makedirs(os.path.dirname(dst), exist_ok=True)