Another possibility is to load and execute the script with the exec() command:
exec(open("foo.py").read())
Search found 1 match
- Wed Mar 09, 2022 1:44 pm
- Forum: MicroPython pyboard
- Topic: how to execute "OTHER" python scripts
- Replies: 12
- Views: 60212