summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Garland <johnnybg+deluge@gmail.com>2010-06-08 01:25:21 +1000
committerJohn Garland <johnnybg+deluge@gmail.com>2010-06-08 01:30:10 +1000
commit26460808e7c151a0e147db8cef3baddfde5c7feb (patch)
treed8ba7dcd50b8c794a0fcfff1b37e85bc5b8ef9c6
parent7aba1af0b23164871bbc47b209d32aba8b855692 (diff)
downloaddeluge-26460808e7c151a0e147db8cef3baddfde5c7feb.tar.gz
deluge-26460808e7c151a0e147db8cef3baddfde5c7feb.tar.bz2
deluge-26460808e7c151a0e147db8cef3baddfde5c7feb.zip
Fix console ui not liking paths with backslashes on windows (#1293)
-rw-r--r--ChangeLog1
-rw-r--r--deluge/ui/console/main.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index cb9e71516..18cf4add8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
=== Deluge 1.3.0-rc2 (In Development) ===
==== ConsoleUI ====
* #1307: Fix not being able to add torrents
+ * #1293: Fix not being able to add paths that contain backslashes
==== Execute ====
* #1306: Fix always executing last event
diff --git a/deluge/ui/console/main.py b/deluge/ui/console/main.py
index a0f057352..a4bb19fd2 100644
--- a/deluge/ui/console/main.py
+++ b/deluge/ui/console/main.py
@@ -109,7 +109,7 @@ class BaseCommand(object):
return self.__doc__
def split(self, text):
- return shlex.split(text)
+ return shlex.split(text, posix=not deluge.common.windows_check())
def create_parser(self):
return OptionParser(prog = self.name,