I have a repository structure hosted in a Google Cloud Repository that looks like this for Google Cloud Functions:
.
module.py
/common
module1.py
module2.py
/cloudfunction1
main.py
requirements.txt
/cloudfunction2
main.py
requirements.txt
Where each of the cloudfunction directories is deployed as a separate cloud function.
What I'd like to do is import modules from either the common directory, or from the root, however utilising a sys.path.append('..')
approach doesn't appear to work. I presume this is because the cloud function deployment process only includes the files in the directory in which main.py is located?
How can I resolve this?