Hi all,
in GNUmed we use wx.StandardPaths with it's method
GetDataDir() to become platform-independant as we run on
Mac/Win/Linux.
On the platform
Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit (Intel)] on win32 (nt)
wxPython GUI framework: 2.8.3.0 ('__WXMSW__', 'wxMSW', 'unicode', 'wx-assertions-on', 'SWIG-1.3.29')
we get the following value for GetDataDir():
system-wide application data dir: c:\python25\lib\site-packages\wx-2.8-msw-unicode\wx
Why is that ? The docs say that it returns the directory
where the executable is located. We would have expected
either of
- where python.exe/pythonw.exe are located
- because those are the "real" executables from the
machine's point of view
- where our gnumed.py is located
- because this is the "logical" executable
when invoking "pythonw gnumed.py"
Semantically, we'd expect a path that corresponds to
/usr/share/gnumed/ on Unix, e.g. where one would properly
store a bitmaps/gnumedlogo.png file.
Is this a bug that should be filed with wxPython/wxWidgets ?
Any other suggestions as to how to proceed with IFDEFing the
platform ?
Thanks,
Karsten
···
--
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346