From 3cfdd20ac02819bbfe15fbc9dbcf0f0858396305 Mon Sep 17 00:00:00 2001 From: Chris Cunningham Date: Mon, 8 Mar 2021 09:36:15 -0400 Subject: [PATCH] fixed attach_pydevd.py script to work on macOS --- src/main/resources/python/attach_pydevd.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/resources/python/attach_pydevd.py b/src/main/resources/python/attach_pydevd.py index f3e4add..bf5d3a6 100644 --- a/src/main/resources/python/attach_pydevd.py +++ b/src/main/resources/python/attach_pydevd.py @@ -74,10 +74,10 @@ def main(setup): setup['pythonpath2'] = os.path.dirname(__file__) # We have to pass it a bit differently for gdb python_code = '''import sys; -sys.path.append(\\\"%(pythonpath)s\\\"); -sys.path.append(\\\"%(pythonpath2)s\\\"); +sys.path.append("%(pythonpath)s"); +sys.path.append("%(pythonpath2)s"); import attach_script; -attach_script.attach(port=%(port)s, host=\\\"%(host)s\\\"); +attach_script.attach(port=%(port)s, host="%(host)s"); '''.replace('\r\n', '').replace('\r', '').replace('\n', '') python_code = python_code % setup