Re: [PyMOL] scripting: pymol.session

2015-01-30 Thread Thomas Holder
Hi Christian, the pymol.session variable is not really part of the API -- means, not intended to be modified or accessed by the user. However, it's all Python and obviously not hidden, so you can mess around with it, if you do it right. Short answer is: Always access it as "pymol.session", don'

Re: [PyMOL] scripting: pymol.session

2015-01-30 Thread Christian Becke
Works perfectly, thanks a lot! On 30.01.2015 21:31, Thomas Holder wrote: > Hi Christian, > > the pymol.session variable is not really part of the API -- means, > not intended to be modified or accessed by the user. However, it's > all Python and obviously not hidden, so you can mess around with it

[PyMOL] scripting: pymol.session

2015-01-29 Thread Christian Becke
Dear pymol experts, I found some odd behaviour when trying to use pymol.session in my script. I'm using open source pymol 1.7.4.0 (built from svn) on linux. Here comes a minimal example: 1) Create a directory, containing the following 2 files: --- script.py --- from pymol import cmd, session