I want to show the directory of my script but is not working with the answers I've founded.
I've tried with several answers, but this one was the most repeated one:
import os
os.path.dirname(os.path.realpath('__file__'))
Still it isn't giving me the desired output, is giving me the working directory:
C:\Users\my_user\Desktop
But I'm working inside a folder in desktop, desired output:
C:\Users\my_user\Desktop\working_folder