Access name of profile or directory AddOn

is there a way for an AddOn to read either the name of the current profile or the directory in that it is stored?


No, profiles are completely invisible to extensions.
Since extensions operate within a profile it doesn’t make much sense to give it access to information about it, since it can not escape the profile either way.

as in our environment we have to access distinct external data based on a set of fixed profiles is there any other way?

Addons doesn’t really have access to your drive anymore. But if you want to read some external config, then you probably want to use which can read some specifically placed manifest files:

But this doesn’t really help with identifying a profile (unless you generate and store some UUID).