From: <pki...@us...> - 2008-07-24 17:07:45
|
Revision: 5841 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5841&view=rev Author: pkienzle Date: 2008-07-24 17:07:43 +0000 (Thu, 24 Jul 2008) Log Message: ----------- locate xrc file relative to script Modified Paths: -------------- trunk/matplotlib/examples/user_interfaces/embedding_in_wx3.py Modified: trunk/matplotlib/examples/user_interfaces/embedding_in_wx3.py =================================================================== --- trunk/matplotlib/examples/user_interfaces/embedding_in_wx3.py 2008-07-24 15:39:41 UTC (rev 5840) +++ trunk/matplotlib/examples/user_interfaces/embedding_in_wx3.py 2008-07-24 17:07:43 UTC (rev 5841) @@ -96,7 +96,9 @@ class MyApp(App): def OnInit(self): - self.res = XmlResource("data/embedding_in_wx3.xrc") + xrcfile = os.path.join(os.path.dirname(__file__),"..","data", + "embedding_in_wx3.xrc") + self.res = XmlResource(xrcfile) # main frame and panel --------- This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |