Skip to content

Commit

Permalink
Merge branch 'master' of github.com:cmcpasserby/MayaCharm
Browse files Browse the repository at this point in the history
  • Loading branch information
cmcpasserby committed Mar 13, 2021
2 parents cae365e + 3cfdd20 commit df7ac3d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/resources/python/attach_pydevd.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit df7ac3d

Please sign in to comment.