Python script to reset Orthanc to reload Lua scripts when scripts are modified

Hi all,

I just created a Python script that you might find useful when testing your Lua scripts. It will watch your Lua script folder and reset Orthanc whenever it detects a modificaiton has been made. This is similar to how some other web frameworks work.

It requires Python 2.7, the requests module and the watchdog module.

You can find it here: https://gist.github.com/bastula/bfa34ce30ce0ee8d585e

It could probably be extended to automatically post and delete images for testing purposes.

Cheers,

Adit

Great! Thanks for this contribution :slight_smile:

I took the liberty of indexing it into the “OrthancContributed” repository:
https://github.com/jodogne/OrthancContributed/blob/master/Scripts/Python/2016-03-08-Autoreload.py

Regards,
Sébastien-