Skip to content

Commit

Permalink
temp
Browse files Browse the repository at this point in the history
  • Loading branch information
mrclary committed Jul 11, 2022
1 parent 8e2589d commit 6686beb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion spyder/plugins/completion/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ class CompletionPlugin(SpyderPluginV2):
Name of the completion client.
"""

sig_pythonpath_changed = Signal(object, object)
sig_pythonpath_changed = Signal(object, object, bool)
"""
This signal is used to receive changes on the PythonPath.
Expand All @@ -121,6 +121,8 @@ class CompletionPlugin(SpyderPluginV2):
Previous PythonPath settings.
new_path: dict
New PythonPath settings.
prepend: bool
Whether to prepend paths to sys.path
"""

sig_interpreter_changed = Signal()
Expand Down
6 changes: 4 additions & 2 deletions spyder/plugins/ipythonconsole/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -830,7 +830,7 @@ def update_working_directory(self):
"""Update working directory to console current working directory."""
self.get_widget().update_working_directory()

def update_path(self, path_dict, new_path_dict):
def update_path(self, path_dict, new_path_dict, prepend):
"""
Update path on consoles.
Expand All @@ -843,12 +843,14 @@ def update_path(self, path_dict, new_path_dict):
Corresponds to the previous state of the PYTHONPATH.
new_path_dict : dict
Corresponds to the new state of the PYTHONPATH.
prepend : bool
Whether to prepend paths to sys.path
Returns
-------
None.
"""
self.get_widget().update_path(path_dict, new_path_dict)
self.get_widget().update_path(path_dict, new_path_dict, prepend)

def set_spyder_breakpoints(self):
"""Set Spyder breakpoints into all clients"""
Expand Down

0 comments on commit 6686beb

Please sign in to comment.