commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: reinhard
Subject: [gnue] r10062 - trunk/gnue-common/src/base
Date: Thu, 26 Nov 2009 05:19:02 -0600 (CST)

Author: reinhard
Date: 2009-11-26 05:19:02 -0600 (Thu, 26 Nov 2009)
New Revision: 10062

Modified:
   trunk/gnue-common/src/base/config.py
Log:
Fix for loading configuration files under Windows.


Modified: trunk/gnue-common/src/base/config.py
===================================================================
--- trunk/gnue-common/src/base/config.py        2009-11-26 11:05:51 UTC (rev 
10061)
+++ trunk/gnue-common/src/base/config.py        2009-11-26 11:19:02 UTC (rev 
10062)
@@ -80,6 +80,10 @@
                 'realm': realm,
                 'url':   url})
             try:
+                # Workaround for Windows file names starting with C: and being
+                # mistaken for C: being the URL type.
+                if len(url) > 2 and url[2] == ':':
+                    url = "file:" + url
                 handle = urllib.urlopen(url)
                 self.readfp (handle)
             except StandardError:





reply via email to

[Prev in Thread] Current Thread [Next in Thread]