Is there any way to query the absolute path of a script inside the script we want to know the location for? For instance if I save it on my Desktop, I would like to store into a variable the absolute location, I want it to return C:/Users/Doc/Desktop.
I saw this piece of code in another guy's script but I don't know exactly if it is useful for what I am aiming to do: path = os.path.dirname(script.__file__)
Do you know how to implement that? Thanks in advance.