I am working on Odoo 12 and need to read the contents of a file that is located on a "static" folder inside my module folder structure.
I am using "os.getcwd()" and it gives me the root folder of my Odoo instalation.
My problem is, on different installations the "custom modules" (addons_path) can be on different locations and this way, my module may fail to work.
Can anyone help me get the exact path to my module root folder in order for me to read the file located at "mymodule/static/myfile.txt"?
Thank you all in advance