I am facing problems in _files which isn't defined if I execute the script with exec, ececfile and in _module_ which is only defined for modules.
And now I want to know which is the best way to check current script directory in Python.
Can someone help me with this?