Open another Rhino 3dm file, but python still remain at the same directory

Hi everyone,
I have 2 rhino 3dm files in different directories.
I use some python script in 1 of the files to open another one (something like rs.Command(’-_Open “file2.3dm”’)
However, I found that after I open file2.3dm, python is still remain printing the directory of file1.3dm

How to update the path?

Thanks in advance

Hello,

You can update the path with
import os
os.chdir( *path* )

1 Like

Thank you so much :blush: