Jump to content

Run

From PyMOL Wiki
(Redirected from Cmd run)

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

USAGE

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

PYMOL API

[edit]

Not directly available. Instead, use :

cmd.do("run ...").

NOTES

[edit]

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.