Suppose:
- dir1
- subdir
- installed_module
- dir2
- dbfile
This is my folder structure. I want to find dbfile
and I am in some other directory. How to use pkg_resources
in python to find the location of the dbfile
using installed module installed_module
?
I tried using pkg_resources.resource_filename('installed_module', dbfile) to get some path that isn't what I was expecting.