As your code relies on the SD Card being present, you may want to turn this into a module that can be imported to keep the primary code cleaner.
see this old topic
As your code relies on the SD Card being present, you may want to turn this into a module that can be imported to keep the primary code cleaner.
see this old topic