---
title: "Discussion on \"How to Find the Current Working Directory in Python\" | Hashnode"
description: "Discussion on \"How to Find the Current Working Directory in Python\". Learn how to get current directory (or path) in Python using pathlib and os modules"
url: "https://hashnode.com/posts/how-to-find-the-current-working-directory-in-python/606cb0feb17dc439b747f59e"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to Find the Current Working Directory in Python](https://miguendes.me/how-to-find-the-current-working-directory-in-python?utm_source=hashnode&utm_medium=feed)

Learn how to get current directory (or path) in Python using pathlib and os modules

Dec 19, 2020 · 3 min read · miguendes.me  
Updated Jan 31, 2022  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#tutorial](https://hashnode.com/tag/tutorial)
-   [#python3](https://hashnode.com/tag/python3)

## Written by

[Miguel Brito](https://hashnode.com/@miguendes)

@miguendes · London, UK

  
[View profile](https://hashnode.com/@miguendes)

Machine Learning Software Engineer - Hobbyst Technical Writer - Interested in Software Testing, Best Practices, Scalability, and Python.

AI Software Engineer based in London, UK with 6+ years of professional experience developing and releasing software in different programming languages - Hobbyist Technical Writer - Interested in Software Testing, Best Practices, Scalability, Machine Learning/AI, and Python.

## Responses 1

Markdown supported · ⌘↵ to post

[Paula Maranhão](https://hashnode.com/@pmaranhaor)

[Apr 6, 2021](https://hashnode.com/posts/how-to-find-the-current-working-directory-in-python/606cb0feb17dc439b747f59e/comment/606cb8cfb17dc439b747f671)

Easy peasy! Great for beginners like me.
