Import error: no module named os

I thought I’d post a solution in case anyone else happens to run into this. This issue has plagued me for months. Whenever I tried to access the ‘os’ module in Ignition, I’d get this error.

Turns out that I had previously used my system for Android development and had a JYTHONPATH variable set pointing into the Android SDK (which doesn’t include os).