I'm running a loop in which I'm importing a custom script schedule.py
I'm updating schedule.py script in the same loop after the import.
How to make fresh import of schedule.py on top of the loop so that I can get the new variable values from it?
How to re import module?
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: How to re import module?
Is this any help viewtopic.php?f=2&t=413&p=7609?
Peter Hinch
Index to my micropython libraries.
Index to my micropython libraries.
Re: How to re import module?
[quote=pythoncoder post_id=23238 time=1510734823 user_id=265]
Is this any help [url]viewtopic.php?f=2&t=413&p=7609[/url]?
[/quote]
Instead of deleting the module, I'm simply changing variable value in realtime. Since, my purpose is to import few variable values only, this would be a better approach.
Is this any help [url]viewtopic.php?f=2&t=413&p=7609[/url]?
[/quote]
Instead of deleting the module, I'm simply changing variable value in realtime. Since, my purpose is to import few variable values only, this would be a better approach.