I am targeting an application that would incorporate BaseX databases into larger projects, each following a standard file tree. As such, it is necessary for the application to interact with a database given by some path relative to the working directory.
The application is structured as to provide query files through the command line in a standalone invocation.
The documentation explains that the normal case is to resolve a directory in which all databases are stored, with each separate database in a sub-directory having the same name as the database.
What support is available for the case in which the application must resolve the path to the database independent of the normal rules?