Question:

What is the purpose of __filename variable?

Answer:

The __filename represents the filename of the code being executed. This is the resolved absolute path of this code file. For a main program this is not necessarily the same filename used in the command line. The value inside a module is the path to that module file.


Keywords:

© 2017 QuizBucket.org