Discussion:
[BitPim-devel] Re: Exception: Bad cache directory: 'cache' when trying to load bit pim on Mac OS X 10.3.9
Roger Binns
2005-09-14 05:20:17 UTC
Permalink
File "com_brew.pyo", line 659, in _check_path
The code in that module doesn't make sense. It is
initialised with <<self.config.Read('path', '')>> in
gui.py.

However for first time users the preferences haven't been
established yet when that code is called and so the '' part
gets used which uses whatever happens to be the current
working directory. For this user things failed because
they were on a read only volume. For other users, they
will end up with a directory named 'cache' somewhere.

The following changes should be made:

- Include a do nothing version of the cache object and
have that used by default

- In the preferences code (which always runs on app init)
create the cache object that does something. That will
also ensure the cache moves if the user changes where
they point their data directory.

Roger

Loading...