Python equivalent of PHP's __DIR__ magic constant?

Viewed 5144

In PHP, the __DIR__ magic constant evaluates to the path to the directory containing the file in which that constant appears.

Is there an equivalent feature in Python?

1 Answers
Related