bluesky / bluesky-queueserver

Server for queueing plans
https://blueskyproject.io/bluesky-queueserver/
BSD 3-Clause "New" or "Revised" License
12 stars 22 forks source link

Rewrite of the code for loading IPython-style startup scripts #239

Closed dmgav closed 2 years ago

dmgav commented 2 years ago

The PR contains rewrite of the code for loading IPython-style startup files. The changes are intended to fix a number of existing problems with loading of scripts. The existing startup scripts written for the previous version are expected to work with the new version without changes. The functions for loading modules, Python scripts and uploading scripts were modified to handle exceptions consistent with the new version of the IPython script loading code.

Description

The new code for loading scripts is based on exec instead of runpy. The changes are expected to fix the following issues observed with the previous version:

Motivation and Context

Summary of Changes for Release Notes

Fixed

Added

Changed

Removed

How Has This Been Tested?

A number of unit tests were implemented to test for the new functionality.