VlaDar,

Right now, "pymol -qc script.py" is the recommended way of running Python
scripts within PyMOL.  "import pymol" will work with some versions on some
platforms, but not in general.

Cheers,
Warren


--
mailto:war...@delsci.com
Warren L. DeLano, Ph.D.
Principal Scientist
DeLano Scientific LLC
400 Oyster Pt. Blvd., Ste 213
South San Francisco, CA 94080
(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 VlaDar
> Sent: Friday, October 15, 2004 9:56 PM
> To: pymol-users@lists.sourceforge.net
> Subject: [PyMOL] how to use pymol functionalities from a 
> python script ?
> 
> Is it possible to use PyMOL from a Python script without 
> lunching a GUI. 
> When I do :
> "import cmd from pymol" in a Python program it automatically 
> lunch Pymol. The only solution I've found was to write a 
> Python script and to execute it from PyMOL with "-c" option. 
> (pymol -c my_script.py)
> 
> 
> Thank you for your help.
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: IT Product Guide on 
> ITManagersJournal Use IT products in your business? Tell us 
> what you think of them. Give us Your Opinions, Get Free 
> ThinkGeek Gift Certificates! Click to find out more 
> http://productguide.itmanagersjournal.com/guidepromo.tmpl
> _______________________________________________
> PyMOL-users mailing list
> PyMOL-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pymol-users
> 



Reply via email to