Skip to content

Commit

Permalink
Merge pull request #3015 from spyder-ide/fix-completions-with-boostrap
Browse files Browse the repository at this point in the history
Editor: Fix code completions when working with bootstrap
  • Loading branch information
ccordoba12 committed Feb 29, 2016
2 parents b60139e + 9f2df9d commit a572ba5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions spyderlib/utils/introspection/plugin_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import socket
import errno
import os
import os.path as osp
import imp
import sys

Expand Down Expand Up @@ -54,11 +55,11 @@ def start(self):
self.process.setWorkingDirectory(os.path.dirname(__file__))
processEnvironment = QProcessEnvironment()
env = self.process.systemEnvironment()
python_path = imp.find_module('spyderlib')[1]
python_path = osp.dirname(imp.find_module('spyderlib')[1])
# Use the current version of the plugin provider if possible.
try:
provider_path = imp.find_module(self.plugin_name)[1]
python_path = os.sep.join([python_path, provider_path])
provider_path = osp.dirname(imp.find_module(self.plugin_name)[1])
python_path = osp.pathsep.join([python_path, provider_path])
except ImportError:
pass
env.append("PYTHONPATH=%s" % python_path)
Expand Down

0 comments on commit a572ba5

Please sign in to comment.