Is there a function to get the root folder of the current package?


#1

I want to use gwendall:autoform-i18n. This package requires to explicitly bind the i18n files to a SimpleSchema by providing a path to the JSON file. Since I want to bundle the files into an own package, I am wondering if there exists a function to get the path of the current package?

I know that I could address the package folder using the /package folder directly and replacing the “:” inside the package name by “_”. But maybe this folder might change in the future, so having an explicit function for this would come in handy.