From 94f96c51658803485ce9cbd124b387b94ac9461a Mon Sep 17 00:00:00 2001 From: John Garland Date: Tue, 8 Jun 2010 01:38:17 +1000 Subject: [PATCH] Python independent version of previous commit --- deluge/ui/console/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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,