If you've got PyMOL configured to open on

import pymol
pymol.finish_launching()

You can suppress the GUI feature and suppress startup output by
providing command line arguments as follows.  Before importing PyMOL,
set a "pymol_argv" list in the __main__ namespace.  PyMOL will interpret
this as a sys.argv styled list of command line arguments.

import __main__
__main__.pymol_argv['pymol','-qc']

import pymol
pymol.finish_launching()

Cheers,
Warren

--
mailto:war...@delanoscientific.com
Warren L. DeLano, Ph.D.
Principal Scientist
DeLano Scientific LLC
Voice (650)-346-1154 
Fax   (650)-593-4020

> -----Original Message-----
> From: pymol-users-ad...@lists.sourceforge.net [mailto:pymol-users-
> ad...@lists.sourceforge.net] On Behalf Of Truls A. Tangstad
> Sent: Friday, October 17, 2003 4:48 AM
> To: pymol-users@lists.sourceforge.net
> Subject: [PyMOL] Using PyMol as a library - no GUI
> 
> I'm very interested in using alot of the functionality that PyMol
> offers programmatically from Python, i.e. without using a GUI at
> all. The chempy package seems to cover alot of my needs, loading
> different file formats etc. even though it doesn't seem to be
> documented.
> 
> Is it also possible to use the rest of the functionality in PyMol from
> other Python scripts? Right now, just importing the pymol package
> seems to force the GUI to open.
> 
> --
> Truls - kerfue+pymol-us...@herocamp.org
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> SourceForge.net hosts over 70,000 Open Source Projects.
> See the people who have HELPED US provide better services:
> Click here: http://sourceforge.net/supporters.php
> _______________________________________________
> PyMOL-users mailing list
> PyMOL-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pymol-users


Reply via email to