I want to get the path of the currently open [dsco] file in the Discovery script, but which class or method should I use?
What are you trying to do with it? You simply could import the os module and use the getcwd (cwd=current working directory)
import os currentPath = os.getcwd()
Thank you for your response.
My question was not clear. When executing a script embedded in a dsco file, I want to obtain the directory path of that dsco file.
When executing with “os.getcwd()” embedded, the installation folder of “Discovery” is obtained, so I am looking for another method.
I appreciate your help and look forward to your advice.
Best regards, Shin
Please try GetActiveWindow().Document.Path