[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[minion-cvs] Make directory initialization work; setup new directory...



Update of /home/minion/cvsroot/src/minion/lib/mixminion
In directory moria.mit.edu:/tmp/cvs-serv24796/lib/mixminion

Modified Files:
	Config.py 
Log Message:
Make directory initialization work; setup new directory URL (again)

Index: Config.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/lib/mixminion/Config.py,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -d -r1.42 -r1.43
--- Config.py	17 May 2003 00:08:42 -0000	1.42
+++ Config.py	28 May 2003 05:26:47 -0000	1.43
@@ -338,6 +338,18 @@
         raise ConfigError("Nickname is too short")
     return s
 
+def _parseFilename(s):
+    """DOCDOC"""
+    #XXXX004 testme
+    #XXXX004 use this more.
+    s = s.strip()
+    if s[0] in "\"'":
+        if s[-1] != s[0]:
+            raise ConfigError("Mismatched quotes")
+        s = s[1:-1]
+
+    return os.path.expanduser(s)
+
 #----------------------------------------------------------------------
 
 # Regular expression to match a section header.