<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Mar 24, 2021 at 12:45 PM Andreas Matthias <<a href="mailto:andreas.matthias@gmail.com">andreas.matthias@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">To access external Lua libraries I have the following settings in texmf.cnf:<br>
<br>
   LUAROCKS_PATH = ~/.luarocks/share/lua/5.3<br>
   LUAROCKS_CPATH= ~/.luarocks/lib/lua/5.3<br>
<br>
   LUAINPUTS = <default_path_here>//;$LUAROCKS_PATH//<br>
   CLUAINPUTS = <default_path_here>//;$LUAROCKS_CPATH//<br>
<br>
Now I have access to files like:<br>
<br>
   ~/.luarocks/share/lua/5.3/?.lua<br>
   ~/.luarocks/lib/lua/5.3/?.so<br>
<br>
But unfortunately I do not get access to `init.lua` files, i.e.:<br>
<br>
   ~/.luarocks/share/lua/5.3/?/init.lua<br>
<br>
What should I do to access these files?<br>
<br>
In addition I have a sneaking suspicion that<br>
<br>
   \directlua{<br>
       print(package.path)<br>
   }<br>
<br>
displays the content of the environment variable $LUA_PATH, but not the<br>
path that is actually accessible to luatex when using kpse settings.<br></blockquote></div><div><br></div><div><br></div>You can run luatex --kpathsea-debug=-1<br>to check what kpse is doing.<br><div>-- <br><div dir="ltr" class="gmail_signature">luigi<br></div></div></div>