Last active
March 31, 2019 17:23
-
-
Save liorbenhorin/033730088310e4f2902193a1f5de6e20 to your computer and use it in GitHub Desktop.
Pipeline 2 get current project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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