Hi all,

I'm working on a plugin that reads information appended to the end of PDB files to draw CGO objects. Right now, I have the user specify the filesystem path to the currently loaded objects through the plugin GUI so that I know where to go to find the file. For one object, this isn't so bad. But if users load multiple objects that are in different directories, I will have to change the GUI so that the user has to specify the path to each object loaded. This kind of situation would quickly become tedious. Does PyMOL store the paths for objects that are loaded somewhere? I know I can get the current working directory using getcwd(), so I'm hoping there's a way to get the path to the loaded objects as well.

I've searched all over the Wiki and the mailing list archives and I haven't been able to find anything relevant. I also looked through importing.py but all I saw was cmd.exp_path() and it doesn't seem to me like the full path that's returned is being stored anywhere. Perhaps in the C layers it gets saved somewhere?

Thanks for any help,
-Ron


Ron Jacak
Graduate Student
University of North Carolina - Chapel Hill

Reply via email to