Improvements for Configpaths
-
Add GUI Folder to Configpaths
-
Paths that are not dependent on profile or configdir commandline options, are now available without calling
initThis makes it possible for other modules to have access to these paths without a running Gajim instance for example the modulegtkexcepthook.pycan be executed for testing purposes by itself, but needs the path to the GUI folder -
Add a get() function
currently it looks akward if we need to access PATHs
from common import configpaths gajimpaths = configpaths.gajimpaths print(gajimpaths['VCARD'])
now we can do it like this
```
from common import configpaths
print(configpaths.get('VCARD'))
- We dont need to windowsify directorys that are not created by gajim (non-config dirs), they are always notcapitalized
- Unicode conversion is not necessary anymore
- tempfile.gettempdir() returns always unicode
- os.environ.get() returns always unicode
- os.path.expanduser() we get what we put into (we put Unicode in)
- Remove not used code