Python Equivalent of PHP’s Magic Constant __FILE__
|
1 |
os.path.dirname(os.path.abspath(__file__)) |
Notes:
See the important note on Stack Overflow.
|
1 |
os.path.dirname(os.path.abspath(__file__)) |
See the important note on Stack Overflow.