diff --git a/patacrep/data/templates/layout.tex b/patacrep/data/templates/layout.tex index 168d9ebe..b7413116 100644 --- a/patacrep/data/templates/layout.tex +++ b/patacrep/data/templates/layout.tex @@ -28,7 +28,7 @@ \makeatletter \def\input@path{(* for dir in datadir *) - {((dir))/latex/} % + {(( dir.replace("\\", "/") ))/latex/} % (* endfor *) } \makeatother diff --git a/patacrep/data/templates/songs.tex b/patacrep/data/templates/songs.tex index a943a237..cd6ba144 100644 --- a/patacrep/data/templates/songs.tex +++ b/patacrep/data/templates/songs.tex @@ -86,7 +86,7 @@ \usepackage{graphicx} \graphicspath{(* for dir in datadir *) - {((dir))/img/} % + {(( dir.replace("\\", "/") ))/img/} % (* endfor *) } diff --git a/patacrep/files.py b/patacrep/files.py old mode 100644 new mode 100755 index 31cc4e2e..803bafb6 --- a/patacrep/files.py +++ b/patacrep/files.py @@ -23,6 +23,6 @@ def relpath(path, start=None): if start is None: start = os.curdir if os.path.abspath(path).startswith(os.path.abspath(start)): - return os.path.relpath(path, start) + return os.path.relpath(path, start).replace("\\", "/") else: - return os.path.abspath(path) + return os.path.abspath(path).replace("\\", "/")