Tag Archives: python path system relative module

How to retrieve current module path in Python?

If you ever wondered how current path for module can be retrieved reliably in Python, there is a relatively simple way to do this. Each module has a __file__ variable that can be used for it. The answer is pretty … Continue reading

Posted in Coding, Programming, Python | Tagged | Leave a comment