From 8abd70093f63859d19f004ac2525f473544b4ab4 Mon Sep 17 00:00:00 2001 From: Nikolaus Schulz Date: Tue, 14 Nov 2006 22:20:37 +0000 Subject: [PATCH] Expand tilde in argument of long option --output-dir, the shell doesn't. --- archivemail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archivemail.py b/archivemail.py index 48e9019..e27aaec 100755 --- a/archivemail.py +++ b/archivemail.py @@ -230,7 +230,7 @@ class Options: archive_by = "days" self.days_old_max = string.atoi(a) if o in ('-o', '--output-dir'): - self.output_dir = a + self.output_dir = os.path.expanduser(a) if o in ('-P', '--pwfile'): self.pwfile = a if o in ('-F', '--filter-append'):