Hi all, I would like to know is it possible to run Pymol from Pythoin script ? I tried this script (to produce png file from pdb file)
#!/usr/bin/python import __main__ __main__.pymol_argv = [ 'pymol', '-qc'] import pymol pymol.finish_launching() pdb_file ="my.pdb" pdb_name ="my_pdb" pymol.cmd.load(pdb_file, pdb_name) pymol.cmd.disable("all") pymol.cmd.enable(pdb_name) pymol.cmd.png("my_pdb.png")
And run it as "python script.py" but no png file is produced and no error !!! Did I got something wrong about Pymol?? any suggestion !!!