mharris
December 10, 2020, 1:22am
1
Hello,
When using a distributed Toolkit config uploaded to SG as a zip file, the contents are downloaded to:
…/Roaming/Shotgun/bundle_cache/sg/{site}/v######/.
Is there a Python command in sgtk to get the value of this config location on disk? Because the v###### is the entity ID of the uploaded config, I do not want to hard code this value as it changes with each upload.
2 Likes
This might help?
Hi @johnnyzxt !
Checking the Cache
So first off this link can help you find your cache folder on mac.
What happens when using an uploaded config, is that you will have a cached pipeline_configuration.yml file stored in:
/Users/{UserName}/Library/Caches/Shotgun/{YourSiteName}/p{Project
ID}c{PipelineConfiguration ID}.basic.maya/cfg/config/core/install_location.yml
In that file it should have a line that looks a bit like this:
source_descriptor: {entity_type: PipelineConfiguration, field: up…
The question is a bit different but I provided a way of checking the path.
2 Likes
mharris
December 10, 2020, 12:55pm
3
This worked perfect, thanks!
import sgtk
engine = sgtk.platform.current_engine()
engine.sgtk.configuration_descriptor.get_path()
2 Likes