Replies: 4 comments 3 replies
-
How do you define "current latex directory"? Can you show an MWE of your current approach, please? As an example, if you have the following file in the folder \documentclass{article}
\usepackage{pyluatex}
\begin{document}
\begin{python}
import os
print(os.getcwd())
\end{python}
\end{document} |
Beta Was this translation helpful? Give feedback.
-
Version 0.4.3 now adds the folder containing the LaTeX file that was used to invoke LuaLaTeX to the Python path automatically. So importing Python files that are located in the same folder as the LaTeX file should be possible now without manually modifying the Python path. Notice that the folder containing the LaTeX file and not the current working directory (which is the folder you are currently in when you start LuaLaTeX) is added.
Often, both folders coincide of course. You can disable this behavior with Does that solve your original question? |
Beta Was this translation helpful? Give feedback.
-
Fixed, it works fine. Thank you for the patch. |
Beta Was this translation helpful? Give feedback.
-
Hi, would it be possible to extend this path setting to the inputed latex ? Currently, if I import an other tex file with |
Beta Was this translation helpful? Give feedback.
-
Is there an option for setting the the python working directory as the current latex directory ? For the moment, I have to modify the
python path
file by file.Beta Was this translation helpful? Give feedback.
All reactions