mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-14 21:44:28 +00:00
Python independent version of previous commit
This commit is contained in:
parent
26460808e7
commit
0fcd90ee2c
@ -109,7 +109,9 @@ class BaseCommand(object):
|
|||||||
return self.__doc__
|
return self.__doc__
|
||||||
|
|
||||||
def split(self, text):
|
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):
|
def create_parser(self):
|
||||||
return OptionParser(prog = self.name,
|
return OptionParser(prog = self.name,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user