I've decided to make a simple Telegram Bot in order to learn a bit of Python. I have a main.py that imports and executes another file
#!/usr/bin/env python
import butlerr
if __name__ == '__main__':
butlerr.main()
I run that file
> python src/main.py
But if I make a change in butlerr.py, that's not reflected in the running app. I imagine I won't see changes in a running app. It works if I stop the command and re-run it, obviously.
I figure that's probably not the way to develop. Is there a more seamless way to make changes and see them immediately? I saw a blog post where they create like a web server, but I think that doesn't work on my case.
I closed a question I previously made cause I thought it was a docker issue, but it was not.
butlerr.main()would have already been called and be running – the effect of swapping it with a new version would be undefined.