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

[minion-cvs] Allow tilde-paths from command line



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

Modified Files:
	ClientMain.py 
Log Message:
Allow tilde-paths from command line

Index: ClientMain.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/lib/mixminion/ClientMain.py,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- ClientMain.py	5 Jan 2003 04:29:11 -0000	1.23
+++ ClientMain.py	5 Jan 2003 05:15:03 -0000	1.24
@@ -443,9 +443,10 @@
             if not s:
                 raise MixError("Couldn't find valid descriptor %s" % name)
             return s
-        elif os.path.exists(name):
+        elif os.path.exists(os.path.expanduser(name)):
+            fname = os.path.expanduser(name)
             try:
-                return ServerInfo(fname=name, assumeValid=0)
+                return ServerInfo(fname=fname, assumeValid=0)
             except OSError, e:
                 raise MixError("Couldn't read descriptor %r: %s" %
                                (name, e))