Skip to content

Commit

Permalink
Fix issue spyder-ide#23497
Browse files Browse the repository at this point in the history
  • Loading branch information
Social-Mean committed Jan 17, 2025
1 parent 1e20d17 commit c75b32f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion spyder/plugins/projects/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,13 @@ def on_mainwindow_visible(self):
# Open project passed on the command line or reopen last one.
cli_options = self.get_command_line_options()
initial_cwd = self._main.get_initial_working_directory()

connection_file = cli_options.connection_file

# Avoid conflicts with `--connect-to-kernel` option. See issue #23497
# for more information.
if connection_file is not None:
return

if cli_options.project is not None:
logger.debug('Opening project from the command line')
project = osp.normpath(
Expand Down

0 comments on commit c75b32f

Please sign in to comment.