Python independent version of previous commit

This commit is contained in:
John Garland 2010-06-08 01:38:17 +10:00
parent 4b1d60c727
commit 94f96c5165
1 changed files with 3 additions and 1 deletions

View File

@ -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,