Dear PyMOL users,

I am wondering if there is any way of testing whether a PyMOL version is
open-source or incentive for use in scripts. I'm thinking of something
similar to 'cmd.get_version()'.

The reason for this is that I am e.g. using the 'alter' command on custom
properties in scripts, which is a feature that may not be available in all
PyMOL versions. At the moment I avoid a crash by placing the code within a
'try' statement, but this will yield an error message. If I could actually
test the incentive/open-source state this would allow me to use an 'if'
statement instead and avoid the error message.

I would welcome suggestions on how to approach this.

Thanks,

Andreas
------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Reply via email to