Application path

BTW, there's an alternate reading of the question which is not about
resources to distribute with the app, but how to determine where the
program should store user-preferences or the like while it's running.
Normally that is platform specific, with the Windows version using one
of the registered shell locations and Unix-ish systems using a .library
directory in the user's home directory. You should *not* generally
store such information in any path which is readily constructed as a
relative transform from the module's __file__. There's some basic code
for this kind of thing in OpenGLContext.

This reminds me of wxConfig, would that also work?
Oliver

Schoenborn, Oliver wrote:

BTW, there's an alternate reading of the question which is not about resources to distribute with the app, but how to determine where the program should store user-preferences or the like while it's running. Normally that is platform specific, with the Windows version using one of the registered shell locations

...

This reminds me of wxConfig, would that also work?

Not for the kind of things OpenGLContext is doing (e.g. caching font meta-data (large file) read from the system), but for simple preferences/configuration-style stuff (i.e. like the Windows registry (which is all I mentioned in my original comment, so you're right on there)) it's great I'm sure (as long as you have wxPython available, which OpenGLContext can't actually rely on either (it works across multiple GUI libraries), but that's off-topic for this group)... not that I've ever used it :slight_smile: .

The Windows shell paths are intended for storing e.g. the user's data-files (i.e. the things they know they're working with), their application-specific data repositories (e.g. Mozilla's or Outlook's mail folders (and all of their preferences, in the case of Mozilla)), their music files, etceteras. On Unix-ish OS-es there are different conventions for where to store each of those.

wxConfig AFAIK uses the Windows registry, btw.

Have fun,
Mike

ยทยทยท

________________________________________________
  Mike C. Fletcher
  Designer, VR Plumber, Coder
  http://members.rogers.com/mcfletch/
  blog: http://zope.vex.net/~mcfletch/plumbing/