Skip to content

Commit

Permalink
fix: jinja use '/' even on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
LKI committed Apr 22, 2020
1 parent b906ef9 commit 2607827
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sea/cmds.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2607827

Please sign in to comment.