From a1e66a4dc1546050f09a209592f827b779762abc Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Tue, 10 May 2016 12:59:07 +0100 Subject: [PATCH] [#2815] [Console] Fix 'add' cmd path inconsistency on windows - When adding a torrent with a download location from command prompt on Windows the slashes were not being normalised resulting in path errors. --- deluge/ui/console/commands/add.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/ui/console/commands/add.py b/deluge/ui/console/commands/add.py index ff4878b49..ee6c7adec 100644 --- a/deluge/ui/console/commands/add.py +++ b/deluge/ui/console/commands/add.py @@ -59,7 +59,7 @@ class Command(BaseCommand): t_options = {} if options["path"]: - t_options["download_location"] = os.path.expanduser(options["path"]) + t_options["download_location"] = os.path.abspath(os.path.expanduser(options["path"])) def on_success(result): self.console.write("{!success!}Torrent added!")