Thank you for yor time, Peter. But this is not what I wanted... :-(
Is there a way to know the directory of the currently being processed source file?
This works with mkiv:
\starttext PWD: \cldcontext{io.popen"pwd":read()} \stoptext
This gives the directory where the "context" command was called from. I want the directory where the "tex" file being processed lives in. For example, I have a component products/product/article.tex Inside a product products/product.tex I produce it by calling context products/product.tex I want to know a function that returns /fullpath_to_project/products/ when I call it from the script "products/product.tex". And I want it to return /fullpath_to_project/products/product/ when I call it from the script "products/product/article.tex". Cheers, André Caldas.