On Tue, Feb 28, 2006 at 10:38:40AM -0800, Warren DeLano wrote: > Indraneel, > > At present, wizards need to be located in the > $PYMOL_PATH/modules/pymol/wizard directory -- changing this would be > nontrivial, since all wizards are assumed to reside in the > "pymol.wizard" namespace.
So this means the user has to run a script that adds any local wizards to sys.modules as pymol.wizard.modulename, before the first "wizard modulename" call? (using imp.load_module). Or assignment can be done directly by pymol.wizard.modulename = module() as in stereodemo.py (sys.modules is not notified here and "wizard modulename" will not work) (I guess _wizard should also check if pymol.wizard.modulename exists before checking sys.modules) I guess this will not conflict as long as pymol.wizard.Wizard does not assume file location (in the future, although there is no reason to, since the second method of assignment does not even have __name__ or __file__ defined for pymol.wizard.modulename). > > FYI: module-name.__path__ has a different meaning than sys.path. Yes, I was guessing this. Thanks, Indraneel > > Cheers, > Warren