From 52f89270e673fb47ba026e11b94a2b691385b09e Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Sat, 2 Jul 2011 01:17:24 +0100 Subject: [PATCH] Fix #1582: Wrong path separator returned when moving storage in Windows --- deluge/core/torrentmanager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/core/torrentmanager.py b/deluge/core/torrentmanager.py index a13c9dc8d..7ee9106db 100644 --- a/deluge/core/torrentmanager.py +++ b/deluge/core/torrentmanager.py @@ -977,7 +977,7 @@ class TorrentManager(component.Component): torrent = self.torrents[str(alert.handle.info_hash())] except: return - torrent.set_save_path(alert.handle.save_path()) + torrent.set_save_path(os.path.normpath(alert.handle.save_path())) torrent.set_move_completed(False) def on_alert_torrent_resumed(self, alert):