Re: Exception: Bad cache directory: 'cache' when trying to load bit pim on Mac OS X 10.3.9
"Roger Binns" <[email protected]>
| Newsgroups | gmane.comp.mobile.bitpim.devel |
|---|---|
| Message-ID | <001401c5b8eb$fe59f1e0$3501a8c0@rogersqyvr14d3> |
> 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
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php