Hi Jason,

This should do it:

name = cmd.get('session_file')


Cheers,
  Thomas

> On Feb 8, 2020, at 5:21 AM, Junsu Park aka. Jason Mosier 
> <parksinj...@gmail.com> wrote:
> 
> Hello, this may be a very simple question that I just can't find the answer 
> to, but I was wondering how I would go about fetching the session name of the 
> .pse currently open? For example, I have two session files: colors and 
> overlays, and I want my code to print something specific for each colors... 
> and overlay... in a text file or whatever based on which one I have open
> 
> Cheers,
> Jason M.
> _______________________________________________
> 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

--
Thomas Holder
PyMOL Principal Developer
Schrödinger, Inc.



_______________________________________________
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

Reply via email to