Not exactly. And I'm not enough of a Python user to know all the reasons for using that statement. But I have two answers.
1. if you want to know what source file is current in a nest of includes(...) you can retrieve the stack of filenames in a list. See Include File List() .
2. if you are trying to build a multiple file project, I found an include pattern that worked for me. The problem I solved was having multiple tabs open in the project editor, then running (^R) whatever file I just edited, which would not be the main file. See Using a Project for a Project
Craige