dabo Commit
Revision 6683
Date: 2011-07-09 03:29:54 -0700 (Sat, 09 Jul 2011)
Author: Jacekk
Trac: http://trac.dabodev.com/changeset/6683

Changed:
U   trunk/dabo/__init__.py

Log:
Small code improvements in the _getEncodingName generator.

Diff:
Modified: trunk/dabo/__init__.py
===================================================================
--- trunk/dabo/__init__.py      2011-07-09 10:26:59 UTC (rev 6682)
+++ trunk/dabo/__init__.py      2011-07-09 10:29:54 UTC (rev 6683)
@@ -128,10 +128,10 @@
        encoding = locale.getlocale()[1] or locale.getdefaultlocale()[1] or 
defaultEncoding
 
        def _getEncodingName():
-               yield encoding
                if encoding.isdigit():
                        # Fix for missing encoding aliases e.g. '874'.
                        yield  "cp%s" % encoding
+               yield encoding
                prefEncoding = locale.getpreferredencoding()
                if not encoding == prefEncoding:
                        yield prefEncoding
@@ -335,7 +335,7 @@
 import dabo.ui
 
 # Store the base path to the framework
-frameworkPath = os.path.dirname(dabo.__file__)
+frameworkPath = os.path.dirname(__file__)
 
 
 # Define the standard Dabo subdirectory stucture for apps.



_______________________________________________
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