def close(self, e=None): try: print("Deleting temporary folder: ", customUserData) pwutils.cleanPath(customUserData) except Exception as ex: print("Error: ", ex) ProjectWindow.close(self, e)
def close(self, e=None): try: print("Writing protocols to: ", jsonFn) proj.getRunsGraph(refresh=True) # Build project runs graph proj.exportProtocols(proj.getRuns(), jsonFn) print("Deleting temporary folder: ", customUserData) pwutils.cleanPath(customUserData) except Exception as ex: print("Error saving the workflow: ", ex) ProjectWindow.close(self, e)
class EditorProjectWindow(ProjectWindow): def close(self, e=None): try: print "Deleting temporary folder: ", customUserData pwutils.cleanPath(customUserData) except Exception, ex: print "Error: ", ex ProjectWindow.close(self, e)
class EditorProjectWindow(ProjectWindow): def close(self, e=None): try: print "Writing protocols to: ", jsonFn proj.getRunsGraph() # Build project runs graph proj.exportProtocols(proj.getRuns(), jsonFn) print "Deleting temporary folder: ", customUserData pwutils.cleanPath(customUserData) except Exception, ex: print "Error saving the workflow: ", ex ProjectWindow.close(self, e)