diff --git a/aprslib/__init__.py b/aprslib/__init__.py index 4ed8da6..7ffce1c 100644 --- a/aprslib/__init__.py +++ b/aprslib/__init__.py @@ -23,6 +23,13 @@ Currently the library provides facilities to: - Connect and listen to an aprs-is packet feed """ +# handles reloading +if 'IS' in globals(): + modules = __import__('sys').modules + for m in modules.keys(): + if m[:len(__name__)+1] == "%s." % __name__: + del modules[m] + from datetime import date as _date __date__ = str(_date.today()) del _date