Whenever I call the Robofab dialogs module from a 'NoneLab' OSX environment, I get an AttributeError that traces back to "dialogs_mac_vanilla.py" and says that the (vanilla) module seemingly has no attribute 'dialogs'.
>>> from robofab.interface.all.dialogs import GetFolder
>>> print GetFolder()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/cosimolupo/Documents/robofab/trunk/Lib/robofab/interface/all/dialogs_mac_vanilla.py", line 168, in GetFolder
result = vanilla.dialogs.getFolder(messageText=message, title=title, directory=directory, allowsMultipleSelection=allowsMultipleSelection)
AttributeError: 'module' object has no attribute 'dialogs'
I am using Python 2.7.2 on a Mac with OSX 10.8.5, Robofab revision 599 from svn, and the latest vanilla package from typesupply's github repository.
The problem appears to be the fact that RoboFab (specifically, dialogs_mac_vanilla.py) only does a global `import vanilla`, whereas vanilla's own __init__.py does not load the vanilla.dialogs module required by RoboFab to dispaly dialogs from within a Mac Python environment.
I could fix the error by appending `import vanilla.dialogs` to RF's dialogs_mac_vanilla.py.