Skip to content

Commit

Permalink
Mac App: Fix crash when using an external interpreter
Browse files Browse the repository at this point in the history
Fixes #2227
  • Loading branch information
ccordoba12 committed Mar 6, 2015
1 parent 20c0392 commit 7603a79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spyderlib/widgets/externalshell/sitecustomize.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ def write(self, text):
# Add a minimal library (with spyderlib) at the end of sys.path to
# be able to connect our monitor to the external console
py_ver = '%s.%s' % (sys.version_info[0], sys.version_info[1])
app_pythonpath = '%s/Contents/Resources/lib/python%s' (MAC_APP_NAME,
py_ver)
app_pythonpath = '%s/Contents/Resources/lib/python%s' % (MAC_APP_NAME,
py_ver)
full_pythonpath = [p for p in sys.path if p.endswith(app_pythonpath)]
if full_pythonpath:
sys.path.remove(full_pythonpath[0])
Expand Down

0 comments on commit 7603a79

Please sign in to comment.