If I am using the __ file __ specifier in a Python script that is to be run inside Paraview's built in Python shell it should be able to interpret it correct? or any Python REPL for that matter. But if I were to directly use the __ file __ attribute inside the Python shell then it wouldn't be able to interpret it. Is this correct in thinking?
I am tryin to backtrack an error in Paraview when I try to run a script in the shell that simply tries to recover a file path. This is the script that I am trying to run.
import os
dir = os.path.dirname(os.path.realpath(__file__))
print(dir)
Hopefully this isn't to vague any help would be appreciated I have been stuck on this for a while now.