Open philipstarkey opened 6 years ago
Original comment by Chris Billington (Bitbucket: cbillington, GitHub: chrisjbillington).
Huh. moduleWatcher is supposed to whitelist all modules that are imported at the time it is instantiated, and runmanager.batch_compiler was imported
in batch_compiler_labscript.py
, which would have imported runmanager
, so it shouldn't have been unloaded.
This seems to be a different problem to issue #28, which is about it whitelisting too much.
Original comment by Chris Billington (Bitbucket: cbillington, GitHub: chrisjbillington).
I'm not able to reproduce this.
Original report (archived issue) by Philip Starkey (Bitbucket: pstarkey, GitHub: philipstarkey).
The ModuleWatcher module (created inside the batch compiler) seems to notice changes to runmanager and indicates it will reload
runmanager/__init__.py
. This occurs if you update runmanager via mercurial while runmanager is running.This is probably undesirable since the batch compiler doesn't get explicitly reloaded, but the runmanager API inside batch compiler does get reloaded. This may lead to incompatibilities between the two.
I think this may be a result of pull request #18.
Note: There are already existing issues with ModuleWatcher, see issue #28.