Thanks GoToLoop! I’m going to have hundreds of SVG files so I’ve built a folder structure in the data folder to keep things organized. I just left the os boilerplate code in there. I’m trying to get in the good habit of using os subroutines to work with file paths, and I’ve had problems accessing things directly in the data folder in Processing’s Python mode.
I’m sort of using a similar approach with os module. I have noticed that any time you make a change in the Processing IDE for Python mode, your sketch path switches to a temp folder. When you save after a code change, then your sketch path goes back to the one that has data folder. It’s usually an issue for my workflow, as I don’t like saving after every code change. Your existing code manages to skip the hassle of saving by setting a universal path for your data, which is great.