summaryrefslogtreecommitdiffstats
path: root/deluge/ui/client.py
diff options
context:
space:
mode:
authorCalum Lind <calumlind@gmail.com>2018-10-18 16:51:10 +0100
committerCalum Lind <calumlind@gmail.com>2018-11-02 08:45:39 +0000
commitcd6bad0e35df63cf3d67651bd64bd3d9ee2ecb80 (patch)
tree021e7d8fd1560416273ea227c3de557c858e1055 /deluge/ui/client.py
parent1310645f55cfc9b601f87a29f56bc31c9bc6bf27 (diff)
downloaddeluge-cd6bad0e35df63cf3d67651bd64bd3d9ee2ecb80.tar.gz
deluge-cd6bad0e35df63cf3d67651bd64bd3d9ee2ecb80.tar.bz2
deluge-cd6bad0e35df63cf3d67651bd64bd3d9ee2ecb80.zip
[UI] Fix passing bytes config path to subprocess on Python 3
The % substitution was causing the bytes prefix to become part of the string and created a `b'/` prefixed config directory. Ensure the config arg is byte prefixed too.
Diffstat (limited to 'deluge/ui/client.py')
-rw-r--r--deluge/ui/client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/deluge/ui/client.py b/deluge/ui/client.py
index 7f37c7b1c..686f962b3 100644
--- a/deluge/ui/client.py
+++ b/deluge/ui/client.py
@@ -671,7 +671,7 @@ class Client(object):
# subprocess.popen does not work with unicode args (with non-ascii characters) on windows
config = config.encode(sys.getfilesystemencoding())
try:
- subprocess.Popen(['deluged', '--port=%s' % port, '--config=%s' % config])
+ subprocess.Popen(['deluged', '--port=%s' % port, b'--config=%s' % config])
except OSError as ex:
from errno import ENOENT