I am having a problem getting a list from entity_from_path. Is there a reason my path_cache.db would not find a path I am giving it? I am simply running the following(the file is loaded file from Nuke from the file manager):
fileName = nuke.root()['name'].value()
tk = sgtk.sgtk_from_path(fileName)
entity = tk.entity_from_path(fileName)
I can launch from the Shotgun website. Also, I can use sgtk.sgtk_from_path() fine, returns api object and i can use sgkt_api_obj.project_path to get project path.