reloading should work now, fix #4

This commit is contained in:
Rossen Georgiev 2014-12-30 16:58:36 +00:00
parent 40dfad3092
commit 46be434644
1 changed files with 7 additions and 0 deletions

View File

@ -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