From d0b5b506cb72ad70a26989cfc10608df2d8f0ace Mon Sep 17 00:00:00 2001 From: Sungbin Lee Date: Fri, 15 Nov 2024 23:22:57 +0900 Subject: [PATCH] Fix incorrect Shotgun import in Python API example (#355) - Corrected the import statement for the Shotgun class to use the proper module path 'shotgun_api3.Shotgun' --- docs/cookbook/usage_tips.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/cookbook/usage_tips.rst b/docs/cookbook/usage_tips.rst index c2aa362b..91cd6e8c 100644 --- a/docs/cookbook/usage_tips.rst +++ b/docs/cookbook/usage_tips.rst @@ -85,7 +85,7 @@ Then when you're writing scripts, you don't need to worry about remembering whic import shotgun_api3 import studio_globals - sg = Shotgun('https://my-site.shotgrid.autodesk.com', 'script_name', '0123456789abcdef0123456789abcdef0123456') + sg = shotgun_api3.Shotgun('https://my-site.shotgrid.autodesk.com', 'script_name', '0123456789abcdef0123456789abcdef0123456') result = sg.find(studio_globals.ENTITY_WIDGET, filters=[['sg_status_list', 'is', 'ip']], fields=['code', 'sg_shot'])