On Jan 24, 2014, at 2:16 PM, "Dougherty, Matthew T" <matthewd@bcm.edu> wrote:

can you tell me where the chimera command "cd" python code is located?

It's in the doCd function in Midas.midas_text.  Minus some error handling, the function is basically one line:

os.chdir(tildeExpand(args))

tildeExpand is a function in the OpenSave module which does some fancy footwork to expand '~' to a user's home directory on Windows machines.

--Eric

                        Eric Pettersen

                        UCSF Computer Graphics Lab

                        http://www.cgl.ucsf.edu