summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Garland <johnnybg+deluge@gmail.com>2010-06-08 01:38:17 +1000
committerJohn Garland <johnnybg+deluge@gmail.com>2010-06-08 01:57:13 +1000
commit0fcd90ee2cc6a68d9f067c2d95843414c3eee176 (patch)
tree817338f3ba3644454b164eb5f672e34e22789de5
parent26460808e7c151a0e147db8cef3baddfde5c7feb (diff)
downloaddeluge-0fcd90ee2cc6a68d9f067c2d95843414c3eee176.tar.gz
deluge-0fcd90ee2cc6a68d9f067c2d95843414c3eee176.tar.bz2
deluge-0fcd90ee2cc6a68d9f067c2d95843414c3eee176.zip
Python independent version of previous commit
-rw-r--r--deluge/ui/console/main.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/deluge/ui/console/main.py b/deluge/ui/console/main.py
index a4bb19fd2..8235ee907 100644
--- a/deluge/ui/console/main.py
+++ b/deluge/ui/console/main.py
@@ -109,7 +109,9 @@ class BaseCommand(object):
return self.__doc__
def split(self, text):
- return shlex.split(text, posix=not deluge.common.windows_check())
+ if deluge.common.windows_check():
+ text = text.replace('\\', '\\\\')
+ return shlex.split(text)
def create_parser(self):
return OptionParser(prog = self.name,