Author: damoxc

Revision: 5919

Log:
        run the path from the add command through os.path.expanduser

Diff:
Modified: branches/1.2_RC/ChangeLog
===================================================================
--- branches/1.2_RC/ChangeLog   2009-11-04 20:45:21 UTC (rev 5918)
+++ branches/1.2_RC/ChangeLog   2009-11-04 23:36:27 UTC (rev 5919)
@@ -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 ====

Modified: branches/1.2_RC/deluge/ui/console/commands/add.py
===================================================================
--- branches/1.2_RC/deluge/ui/console/commands/add.py   2009-11-04 20:45:21 UTC 
(rev 5918)
+++ branches/1.2_RC/deluge/ui/console/commands/add.py   2009-11-04 23:36:27 UTC 
(rev 5919)
@@ -58,7 +58,7 @@
 
         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 = []

Modified: trunk/deluge/ui/console/commands/add.py
===================================================================
--- trunk/deluge/ui/console/commands/add.py     2009-11-04 20:45:21 UTC (rev 
5918)
+++ trunk/deluge/ui/console/commands/add.py     2009-11-04 23:36:27 UTC (rev 
5919)
@@ -58,7 +58,7 @@
 
         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 = []



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to