# HG changeset patch # User Steve Losh # Date 1251322993 14400 # Node ID 34c00c0b1d6d5df638f9d47a0d61e307f3559289 # Parent 712ea48e6ee3e35ff872747bbd4aeb7120922ab0 Fix the tilde expansion problem. diff -r 712ea48e6ee3 -r 34c00c0b1d6d t.py --- a/t.py Wed Aug 26 17:35:31 2009 -0400 +++ b/t.py Wed Aug 26 17:43:13 2009 -0400 @@ -60,7 +60,7 @@ self.taskdir = taskdir filemap = (('tasks', self.name), ('done', '.%s.done' % self.name)) for kind, filename in filemap: - path = os.path.join(os.path.realpath(self.taskdir), filename) + path = os.path.join(os.path.expanduser(self.taskdir), filename) if os.path.isdir(path): raise InvalidTaskfile if os.path.exists(path): @@ -77,7 +77,7 @@ def write(self): filemap = (('tasks', self.name), ('done', '.%s.done' % self.name)) for kind, filename in filemap: - path = os.path.join(os.path.realpath(self.taskdir), filename) + path = os.path.join(os.path.expanduser(self.taskdir), filename) if os.path.isdir(path): raise InvalidTaskfile with open(path, 'w') as tfile: