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.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-checkins mailing list
Matplotlib-checkins@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to