I am using a find statement to execute python scripts which are in sub folders of all sub folders of the current directory
The find statement is find . -name \process.py -type f -exec python3 {} \;
The problem I am encountering is that the script is using relative paths e.g ..\data
for retrieving other resources. These relative paths are resolved as required when the script is executed individually by running it from its directory but when running the script from a parent directory two levels up using the find
command the path resolves relative to that parent directory causing errors