Problem solved by using __init__.pyo instead of __init__.py. It could be that python on DrJanet's mac doesn't like intermixing the two formats. However, in the process of debugging I discovered some tab characters in __init_.py file which don't bother the windows interpreter but could have bothered the mac one. For completeness I have converted the tabs to the right number of spaces.
To make things easier, I also built separate .pyo files that don't use the environment variable, but instead directly implement the desired option. DrJanet is using one of these.
|