aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2016-02-21 03:29:02 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2016-02-21 03:32:03 +0800
commitc1c05c67ea6087c3b0190c9f16cb9fdd8160e398 (patch)
treee030643806d313ec15860de9b04122b2e2f4bdec
parent399a76e67bca0beb4849ea90c4f40803fbd06ed3 (diff)
[utils] Jython support - disable setproctitle() until ctypes is complete
-rw-r--r--youtube_dl/utils.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py
index 17747be26..16b4324a4 100644
--- a/youtube_dl/utils.py
+++ b/youtube_dl/utils.py
@@ -1397,6 +1397,12 @@ def fix_xml_ampersands(xml_str):
def setproctitle(title):
assert isinstance(title, compat_str)
+
+ # ctypes in Jython is not complete
+ # http://bugs.jython.org/issue2148
+ if sys.platform.startswith('java'):
+ return
+
try:
libc = ctypes.cdll.LoadLibrary('libc.so.6')
except OSError: