Charlie Moad wrote:
>> Although my understanding of setup* is minimal, I agree; I think that
>> keeping some organization in the data will be helpful.  It looks like
>> get_data_path() is not called in many places, so if that is essentially
>> what has to be fixed, it should not be very difficult.  It might be
>> facilitated by making _get_data_path() accept *args, a set of
>> subdirectories to be appended.
>>     
>
> I think the way to go is what Andrew typed:
>
> os.path.join( mpl.get_data_dir(), 'gui', 'blah.glade' )
>   
OK, I just implemented this nested idea and it appears to work.

I tried to commit it to SVN, but SF's servers were giving me some talk 
about permissions... Sigh.

So, I sent the patch file to John, who'll hopefully commit it if he 
approves. To paraphrase Robert Kern, "Working code ends all arguments". 
So, since this was the nested way, and the biggest reason against it was 
that it require code change, well, I changed the code, and perhaps the 
arguments are ended?

Because I did change a fair amount of data_path -using code, it'd be 
good to exercise all your favorite font and image finding sections of 
code. The bits I tried worked for me, of course, but no guarantees...

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to