[#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.
This commit is contained in:
parent
6240243251
commit
a1e66a4dc1
|
@ -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!")
|
||||
|
|
Loading…
Reference in New Issue