I'm trying to run pymol in batch mode without launching the window. I am running PyMOL 3.1.1.
Here is my code for an example script (test.py). I'm trying to run before running the real script. In the command line I enter: pymol -cq test.py from pymol import cmd import time def main(): print("Starting PyMOL batch processing...") cmd.load("3gbn.pdb") do_stuff() print("Loaded 3gbn.pdb") time.sleep(25) # Ensure commands are processed cmd.quit() if __name__ == "__main_": main() I don't get any output. If I type: pymol -c test.py It appears that pymol starts and closes: [image: image.png] Any help on how to run a python script with pymol in batch without opening the GUI would be appreciated. Yarrow
_______________________________________________ PyMOL-users mailing list Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net Unsubscribe: https://sourceforge.net/projects/pymol/lists/pymol-users/unsubscribe