From 030cd86d7e4453c9773beaf75abab6e4ae48b607 Mon Sep 17 00:00:00 2001 From: Dmitry Trofimov Date: Wed, 29 Oct 2014 17:37:26 +0100 Subject: [PATCH] Fix spaces in paths bug (PY-14246). --- .../pydevd_attach_to_process/add_code_to_python_process.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/helpers/pydev/pydevd_attach_to_process/add_code_to_python_process.py b/python/helpers/pydev/pydevd_attach_to_process/add_code_to_python_process.py index cf698e5230da..e669ce6b259a 100644 --- a/python/helpers/pydev/pydevd_attach_to_process/add_code_to_python_process.py +++ b/python/helpers/pydev/pydevd_attach_to_process/add_code_to_python_process.py @@ -525,7 +525,7 @@ def run_python_code_mac(pid, python_code, connect_debugger_tracing=False, show_d cmd.extend([ "-o 'process attach --pid %d'"%pid, - "-o 'command script import \'%s\''" % (lldb_threads_prepare_file,), + "-o 'command script import \"%s\"'" % (lldb_threads_prepare_file,), "-o 'expr (void*)dlopen(\"%s\", 2);'" % target_dll, # "-o 'expr (int)hello();'", "-o 'expr (int)DoAttach(%s, \"%s\", %s);'" % ( @@ -536,7 +536,7 @@ def run_python_code_mac(pid, python_code, connect_debugger_tracing=False, show_d if connect_debugger_tracing: cmd.extend([ # "-o 'expr (int) SetSysTraceFunc(0, 0);'", - "-o 'command script import \'%s\''" % (lldb_threads_settrace_file,), + "-o 'command script import \"%s\"'" % (lldb_threads_settrace_file,), ]) cmd.extend([