Skip to content

Commit

Permalink
Merge pull request #219 from impact27/fix_startup_file
Browse files Browse the repository at this point in the history
PR: Check that startup file exists
  • Loading branch information
ccordoba12 committed Apr 24, 2020
2 parents 2a9e2bd + 330a8dc commit 94dd657
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spyder_kernels/console/start.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,8 @@ def kernel_config():
use_file_o = os.environ.get('SPY_USE_FILE_O')
run_file_o = os.environ.get('SPY_RUN_FILE_O')
if use_file_o == 'True' and run_file_o is not None:
spy_cfg.IPKernelApp.file_to_run = run_file_o
if osp.exists(run_file_o):
spy_cfg.IPKernelApp.file_to_run = run_file_o

# Autocall
autocall_o = os.environ.get('SPY_AUTOCALL_O')
Expand Down

0 comments on commit 94dd657

Please sign in to comment.