I’m trying to make contents of a directory outside application’s file system root available to my application. For that I’m adding the directory to my adef requires section as follows:
requires: {
dir: {
[rx]"/home/root/python/usr/local/lib/python2.7" "/usr/local/lib/python2.7"
}
}
The logs suggest that access is denied to site.py file from the directory above.
So I try to mention site.py explicitly in file subsection as follows:
requires:
{
dir: {
[rx]"/home/root/python/usr/local/lib/python2.7" "/usr/local/lib/python2.7"
}
file: {
[rx]"/home/root/python/usr/local/lib/python2.7/site.py" "/usr/local/lib/python2.7/"
}
}
Now the site.py is accessible from the application. Does this mean that configuring mapping through the dir section alone is not enough? How do I make all files from the directory accessible to application without mentioning each one of them explicitly in the file section?
Thanks and regards