Custom App and before app launch?

The Application instance has a disk_location property as well, which should return back the location on disk where the app is located:

# from dialog.py
self._app.disk_location

> /Users/philips1/Library/Caches/Shotgun/bundle_cache/app_store/tk-multi-publish2/v2.3.8

If it’s the config location you want I think you could do something like this:

# If inside the app instance
self.sgtk.configuration_descriptor.get_path()
# If inside dialog.py
self._app.self.sgtk.configuration_descriptor.get_path()

# else where
import sgtk
engine = sgtk.platform.current_engine()
engine.sgtk.configuration_descriptor.get_path()

> /Users/username/Library/Caches/Shotgun/bundle_cache/app_store/tk-config-basic/v1.2.10
1 Like