dabo Commit
Revision 4877
Date: 2008-12-18 13:16:31 -0800 (Thu, 18 Dec 2008)
Author: Paul
Trac: http://trac.dabodev.com/dabo/changeset/4877

Changed:
U   trunk/dabo/__init__.py

Log:
Moved the importing of settings above dLocalize, to make it possible to run the
dLocalize.py as a script.


Diff:
Modified: trunk/dabo/__init__.py
===================================================================
--- trunk/dabo/__init__.py      2008-12-18 21:01:05 UTC (rev 4876)
+++ trunk/dabo/__init__.py      2008-12-18 21:16:31 UTC (rev 4877)
@@ -121,6 +121,9 @@
 # dApp will change the following values upon its __init__:
 dAppRef = None
 
+# Import global settings (do this first, as other imports may rely on it):
+from settings import *
+
 # Install localization service for dabo. dApp will install localization service
 # for the user application separately.
 import dLocalize
@@ -129,9 +132,6 @@
 # in these cases we wimply use the encoding from the default locale
 fileSystemEncoding = sys.getfilesystemencoding() or 
locale.getdefaultlocale()[1]
 
-# Import global settings (do this first, as other imports may rely on it):
-from settings import *
-
 # Instantiate the logger object, which will send messages to user-overridable
 # locations. Do this before any other imports.
 from dabo.lib.logger import Log




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to