MantidPlot defines the variable “file” to be the full pathname of the current script in the Python Window, if it has been saved or reloaded. This is useful for example if I have a script on the Script Repository, with some associated data files that it needs to load. It therefore doesn’t matter where someone else has saved their local copy of the repository, it will just work.
MantidWorkbench does not define file. Should it?