__file__ is not defined when ParaView python state file is loaded through ``File->Load State...''
When loading a python state file through ``File->Load State...'' the file variable is not defined. This makes it impossible to use relative paths inside python state files when loaded in this manner. Loading the state file through Python Shell via Run Script works as expected and file points to the location of the state file.
Example file: placeholder.py
Error message: Traceback (most recent call last): File "", line 14, in NameError: name 'file' is not defined