File system and searching
Any file name in appletree will be handled by a function appletree.utils.get_file_path, which will search the file and return its path
- appletree.utils.get_file_path(fname)[source]
Find the full path to the resource file.
- Try 5 methods in the following order.
fname begin with ‘/’, return absolute path
url_base begin with ‘/’, return url_base + name
can get file from _get_abspath, return appletree internal file path
can be found in local installed ntauxfiles, return ntauxfiles absolute path
can be downloaded from MongoDB, download and return cached path
The last two methods are only used for XENON collabration. In most cases, method 1 and 2 are enough. And in method 2, the function will search the folders maps, data, parameters, configs.