From 7e19a1152192470f9798a9ba60938d52c9092ce0 Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Wed, 4 Nov 2009 23:36:27 +0000 Subject: [PATCH] run the path from the add command through os.path.expanduser --- ChangeLog | 1 + deluge/ui/console/commands/add.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 564c42427..f56b9dbfa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -10,6 +10,7 @@ ==== Console ==== * Escape hyphens in the manpage * Make the delete key work + * Allow ~ to be used in the path in the add command === Deluge 1.2.0_rc3 (01 November 2009) === ==== Core ==== diff --git a/deluge/ui/console/commands/add.py b/deluge/ui/console/commands/add.py index 24fc9237b..1a931e4d1 100644 --- a/deluge/ui/console/commands/add.py +++ b/deluge/ui/console/commands/add.py @@ -58,7 +58,7 @@ class Command(BaseCommand): t_options = {} if options["path"]: - t_options["download_location"] = options["path"] + t_options["download_location"] = os.path.expanduser(options["path"]) # Keep a list of deferreds to make a DeferredList deferreds = []