From: <ror...@us...> - 2007-07-16 12:37:27
|
Revision: 107 http://roreditor.svn.sourceforge.net/roreditor/?rev=107&view=rev Author: rorthomas Date: 2007-07-16 05:37:26 -0700 (Mon, 16 Jul 2007) Log Message: ----------- * dependency image is now opened after creation Modified Paths: -------------- trunk/lib/ror/depcheckerplugins/ror_mesh.py trunk/lib/ror/starter.py Modified: trunk/lib/ror/depcheckerplugins/ror_mesh.py =================================================================== --- trunk/lib/ror/depcheckerplugins/ror_mesh.py 2007-07-16 12:10:52 UTC (rev 106) +++ trunk/lib/ror/depcheckerplugins/ror_mesh.py 2007-07-16 12:37:26 UTC (rev 107) @@ -16,6 +16,7 @@ def convertToXML(filename): # try to convert to .msh.xml first! cmd = CONVERTERBIN + " " + filename + print "calling " + cmd p = subprocess.Popen(cmd, shell = False, cwd = os.path.dirname(CONVERTERBIN), stderr = subprocess.PIPE, stdout = subprocess.PIPE) p.wait() print "mesh converted: " + filename Modified: trunk/lib/ror/starter.py =================================================================== --- trunk/lib/ror/starter.py 2007-07-16 12:10:52 UTC (rev 106) +++ trunk/lib/ror/starter.py 2007-07-16 12:37:26 UTC (rev 107) @@ -3,6 +3,7 @@ from ror.RoROgreWindow import * from ror.rorcommon import * from subprocess import Popen +import subprocess from ror.logger import log from ror.settingsManager import getSettingsManager @@ -117,14 +118,17 @@ f.close() def OnDepGraph(self, event=None): - dlg = wx.MessageDialog(self, "to get this working, you must install tools/pyparsing*.exe and tools/graphviz*.exe (relative to the installation directory)!", "Info", wx.OK | wx.ICON_INFORMATION) - dlg.ShowModal() - dlg.Destroy() from depchecker import * RoRDepChecker(self.rordir, "all", "") - dlg = wx.MessageDialog(self, "If everything went fine (and you got the correct tools installed), you should find the graph in the RoRToolkit Directory under dependencies.png!\n it is best viewed in firefox.\nred means missing/nout found.", "Info", wx.OK | wx.ICON_INFORMATION) - dlg.ShowModal() - dlg.Destroy() + file = os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(__file__)), "..\\..\\dependencies.png")) + print file + if os.path.isfile(file): + dlg = wx.MessageDialog(self, "Graph successfully created:\n"+file, "Info", wx.OK | wx.ICON_INFORMATION) + dlg.ShowModal() + dlg.Destroy() + cmd = file + p = subprocess.Popen(cmd, shell = True, stderr = subprocess.PIPE, stdout = subprocess.PIPE) + def OnUpdate(self, event=None): import svngui This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |