@ -27,9 +27,14 @@
\makeatletter
\def\input@path{ %
% include .sty folders
(* for dir in datadir *)
{(( path2posix(dir) ))/latex/} %
(* endfor *)
% include datadir folders (for \import)
{(( path2posix(dir) ))/} %
}
\makeatother
@ -36,7 +36,7 @@ class Latex2LatexSong(Song):
raise ValueError(self.datadir)
path = files.path2posix(files.relpath(
self.fullpath,
os.path.dirname(self.datadir)
self.datadir
))
return r'\import{{{}/}}{{{}}}'.format(os.path.dirname(path), os.path.basename(path))