title: Python, PyMOL - how to automatically update working directory upon loading object by drag and drop
body: <p>I am using PyMOL and wish to automatically update working directory upon loading object by drag and drop. For example, my  current pymol working directory is C:/pymol. I then load a pdb file from C:/pdb. How can Pymol automatically update the current working directory to C:/pdb? If it is difficult, then is it possible to get the output from the drag and drop commoand? I notice that everytime I drop a file into Pymol, there is an output saying &quot;CmdLoad: &quot;C:/pdb/C1.pdb&quot; loaded as &quot;C1&quot;. Anyway I can store this output in a variable? Many thanks</p>