ptahproject/ptah — Issue #19: initialize_settings "cant be called twice"
Author: bobdobbs666
Created: 2011-10-21 04:35:57+00:00
State: open

I initialize_settings and it failed (could not find .ini) then I tried again
and got "RuntimeError: initialize_settings has been called more than once."
which is unexpected; it could not find the file the first time ;-)

```
OError: [Errno 2] No such file or directory: 'src\\rescaf\\development.ini'

n [4]: config.initialize_settings({'settings':r'.\src\rescaf\development.ini'})
--------------------------------------------------------------------------
untimeError Traceback (most recent call last)
:\ptah\tutorial\src\ in ()
---> 1 config.initialize_settings({'settings':r'.\src\rescaf\development.ini'})

:\ptah\tutorial\src\ptah\ptah\config\settings.pyc in initialize_settings(settings,
on)
57 if Settings.initialized:
58 raise RuntimeError(
--> 59 "initialize_settings has been called more than once.")
60
61 log.info('Initializing ptah settings')

untimeError: initialize_settings has been called more than once.

n [5]: config.initialize_settings({'settings':r'.\src\rescaf\development.ini'})
```