Am 09.09.25 um 15:50 schrieb Gavin via ntg-context:
I wrote a module that draws globes, but I’ve run into a problem as I get it
ready to share. The module works fine for documents that are in the same folder
as the module’s various files, but it doesn’t work for documents that are
anywhere else. ConTeXt finds and loads the module, but it can’t find the data
files containing the map data.
The module’s files and directory structure can all be found at:
https://github.com/Sophias-Compass/luageo
Thank you for this interesting contribution!
dofile("data/iles.lua")
dofile("data/ameriquenord.lua”)
AFAIK, dofile is a Lua function, it doesn’t know anything about TDS.
Did you try loading the files with a ConTeXt function like
context.runfile("iles.lua")
?
It might need a "mtxrun --generate" before to update the file database.
HTH
Hraban
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl /
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________