if the old yang module are not satisfied or takes some defects
There are two situations cause this: 1 the data is wrong(e.g. somebody send error data) 2 the demand of the module changed
It's hard to distinguish. So if you want to hot-patch automatically by this, it will be hard.
But if you just want to hot-patch manually, I think you can do the logics in your application: 1 Detect the whether the files is changed in the path. 2 If yes, call lys_parse_path again to reload the module.