Run: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
===PYMOL API=== | ===PYMOL API=== | ||
Not directly available. Instead, use : | |||
cmd.do("run ..."). | |||
===NOTES=== | ===NOTES=== |
Revision as of 23:37, 14 June 2005
DESCRIPTION
run executes an external Python script in a local name space, the global namespace, or in its own namespace (as a module).
USAGE
run python-script [, (local | global | module | main | private ) ]
PYMOL API
Not directly available. Instead, use :
cmd.do("run ...").
NOTES
The default mode for run is global.
Due to an idiosyncracy in Pickle, you can not pickle objects directly created at the main level in a script run as "module", (because the pickled object becomes dependent on that module). Workaround: delegate construction to an imported module.