Browse Source

Revert "Gestion des chemins de fichiers pour LaTeX"

This reverts commit 624211c3b3.
pull/55/head
Luthaf 11 years ago
parent
commit
e823a7dbfe
  1. 2
      patacrep/data/templates/layout.tex
  2. 2
      patacrep/data/templates/songs.tex
  3. 4
      patacrep/files.py

2
patacrep/data/templates/layout.tex

@ -28,7 +28,7 @@
\makeatletter
\def\input@path{(* for dir in datadir *)
{(( dir.replace("\\", "/") ))/latex/} %
{((dir))/latex/} %
(* endfor *)
}
\makeatother

2
patacrep/data/templates/songs.tex

@ -86,7 +86,7 @@
\usepackage{graphicx}
\graphicspath{(* for dir in datadir *)
{(( dir.replace("\\", "/") ))/img/} %
{((dir))/img/} %
(* endfor *)
}

4
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).replace("\\", "/")
return os.path.relpath(path, start)
else:
return os.path.abspath(path).replace("\\", "/")
return os.path.abspath(path)

Loading…
Cancel
Save