Skip to content

Hot to reset the connection? #123

Answered by leelavg
LGoraPOL asked this question in Q&A
Discussion options

You must be logged in to vote
  • afaik, it's not possible from the codebase
  • you could do something like below to unload modules
import sys
items = [item for item in sys.modules.keys() if item.startswith('pylero')]
# just fyi
print(items)
for item in items:
  del(sys.modules[item])

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@LGoraPOL
Comment options

Answer selected by LGoraPOL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants