Skip to content

Commit

Permalink
Main interpreter: Log when there are changes to the main interpreter
Browse files Browse the repository at this point in the history
  • Loading branch information
ccordoba12 committed Aug 21, 2024
1 parent ae49d46 commit c4f5779
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spyder/plugins/maininterpreter/container.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"""Main interpreter container."""

# Standard library imports
import logging
import os
import os.path as osp
import sys
Expand All @@ -27,6 +28,9 @@
from spyder.utils.workers import WorkerManager


logger = logging.getLogger(__name__)


class MainInterpreterContainer(PluginMainContainer):

sig_interpreter_changed = Signal(str)
Expand Down Expand Up @@ -217,6 +221,7 @@ def _finish_updating_envs(self, worker, output, error):
def _update_interpreter(self, interpreter=None):
"""Set main interpreter and update information."""
if interpreter:
logger.debug(f"Main interpreter changed to {interpreter}")
self._interpreter = interpreter

if self._interpreter not in self.path_to_env:
Expand Down

0 comments on commit c4f5779

Please sign in to comment.