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:
_______________________________________________
commit-gnue mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnue