Skip to content

Instantly share code, notes, and snippets.

@liorbenhorin
Last active March 31, 2019 17:23
Show Gist options
  • Save liorbenhorin/033730088310e4f2902193a1f5de6e20 to your computer and use it in GitHub Desktop.
Save liorbenhorin/033730088310e4f2902193a1f5de6e20 to your computer and use it in GitHub Desktop.
Pipeline 2 get current project
def pipeline_window():
try:
pipeline_win = pipeline.apps.pipeline_main.pipeLineUI.instances
return pipeline_win[-1]
except:
raise('Error geting pipeline window instance')
p = pipeline_window()
print p.project.path
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment