This is a read-only mirror of


From PyMOL Wiki
Revision as of 03:09, 28 March 2014 by Bell (talk | contribs) (6 revisions)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

run executes an external Python script in a local name space, the global namespace, or in its own namespace (as a module).


run python-script [, (local | global | module | main | private ) ]


Not directly available. Instead, use :"run ...").


The default mode for run is global.

Due to an idiosyncrasy 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.