2012-10-29 23:44:24 +04:00
|
|
|
# PyDTLS reloader. Written by Ray Brown.
|
|
|
|
"""PyDTLS package reloader
|
|
|
|
|
|
|
|
This script reloads all modules of the DTLS package. This can be useful in
|
|
|
|
runtime environments that usually persist across package file edits, such as
|
|
|
|
the IPython shell.
|
|
|
|
"""
|
|
|
|
|
|
|
|
import dtls
|
|
|
|
import dtls.err
|
2012-11-09 00:04:40 +04:00
|
|
|
import dtls.util
|
2012-10-29 23:44:24 +04:00
|
|
|
import dtls.sslconnection
|
2012-11-09 00:04:40 +04:00
|
|
|
import dtls.x509
|
2012-10-29 23:44:24 +04:00
|
|
|
import dtls.openssl
|
|
|
|
import dtls.demux
|
|
|
|
import dtls.demux.router
|
|
|
|
|
|
|
|
def main():
|
|
|
|
reload(dtls)
|
|
|
|
reload(dtls.err)
|
2012-11-09 00:04:40 +04:00
|
|
|
reload(dtls.util)
|
2012-10-29 23:44:24 +04:00
|
|
|
reload(dtls.sslconnection)
|
2012-11-09 00:04:40 +04:00
|
|
|
reload(dtls.x509)
|
2012-10-29 23:44:24 +04:00
|
|
|
reload(dtls.openssl)
|
|
|
|
reload(dtls.demux)
|
|
|
|
reload(dtls.demux.router)
|
|
|
|
reload(dtls.sslconnection)
|
2012-11-09 00:04:40 +04:00
|
|
|
reload(dtls.x509)
|
2012-10-29 23:44:24 +04:00
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
main()
|