reloading should work now, fix #4
This commit is contained in:
parent
40dfad3092
commit
46be434644
|
|
@ -23,6 +23,13 @@ Currently the library provides facilities to:
|
||||||
- Connect and listen to an aprs-is packet feed
|
- 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
|
from datetime import date as _date
|
||||||
__date__ = str(_date.today())
|
__date__ = str(_date.today())
|
||||||
del _date
|
del _date
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue