[wxPython-users] Cross-platform distribution

Dusty Phillips buchuki at gmail.com
Mon Oct 1 13:26:52 PDT 2007


> > So I need to know how to either:
> > a) get wxPython to return C:\Python2x\share\pallavi or whichever
> > similar path is related to the Python installation OR
>
> On Windows you can use something like os.path.join(sys.prefix,
> 'share/pallavi),

It looks like that would also work under Linux, since sys.prefix
returns /usr on my system. I think its possible for the situation to
arise where sys.prefix returns /usr and the files are installed to
/usr/local though. Would wx.StandardPaths know to do the right thing
in this case?

Probably my best bet is to look in wx.StandardPaths and use sys.prefix
as a fallback. That should cover 90% of the cases, and the other 10%
would probably be created by distributors who know how to patch it.

Thanks,
Dusty




More information about the wxpython-users mailing list