reinhard | 23 Mar 16:40 2010

[gnue] r10153 - trunk/gnue-common/src/base

Author: reinhard
Date: 2010-03-23 10:40:35 -0500 (Tue, 23 Mar 2010)
New Revision: 10153

Modified:
   trunk/gnue-common/src/base/config.py
Log:
Fixed local config directory name for Windows.

Modified: trunk/gnue-common/src/base/config.py
===================================================================
--- trunk/gnue-common/src/base/config.py	2010-02-25 10:53:19 UTC (rev 10152)
+++ trunk/gnue-common/src/base/config.py	2010-03-23 15:40:35 UTC (rev 10153)
 <at>  <at>  -147,7 +147,10  <at>  <at> 
         files.append(os.path.join(os.environ['HOME'], '.gnue', realm + '.conf'))

     # 4. local configuration (etc/*.conf)
-    files.append(os.path.join('etc', realm + '.conf'))
+    if os.name = 'posix':
+        files.append(os.path.join('etc', realm + '.conf'))
+    else:
+        files.append(os.path.join('Config', realm + '.conf'))

     # 5. environment variable location ($GNUE_*)
     if os.environ.has_key('GNUE_' + realm.upper() + '_CONF'):
reinhard | 23 Mar 16:52 2010

[gnue] r10154 - trunk/gnue-common/src/base

Author: reinhard
Date: 2010-03-23 10:52:14 -0500 (Tue, 23 Mar 2010)
New Revision: 10154

Modified:
   trunk/gnue-common/src/base/config.py
Log:
Fixed typo.

Modified: trunk/gnue-common/src/base/config.py
===================================================================
--- trunk/gnue-common/src/base/config.py	2010-03-23 15:40:35 UTC (rev 10153)
+++ trunk/gnue-common/src/base/config.py	2010-03-23 15:52:14 UTC (rev 10154)
 <at>  <at>  -147,7 +147,7  <at>  <at> 
         files.append(os.path.join(os.environ['HOME'], '.gnue', realm + '.conf'))

     # 4. local configuration (etc/*.conf)
-    if os.name = 'posix':
+    if os.name == 'posix':
         files.append(os.path.join('etc', realm + '.conf'))
     else:
         files.append(os.path.join('Config', realm + '.conf'))

Gmane