stashapp / CommunityScripts

This is a public repository containing plugin and utility scripts created by the Stash Community.
https://docs.stashapp.cc/add-ons/
GNU Affero General Public License v3.0
190 stars 147 forks source link

❓[RFC] API to get Stash folder and executable #400

Closed David-Maisonave closed 2 months ago

David-Maisonave commented 3 months ago

Is there an API to get Stash folder and executable? I know I can get the plugin path with the following call:

self.get_configuration()['general']['pluginsPath']

Is there something similar for the Stash folder?

Can I safely use this method on any OS type to get the Stash folder?

f"{pathlib.Path(stash.PLUGINS_PATH).resolve().parent}{os.sep}"