---
title: "Discussion on \"How to get the current directory in python?\" | Hashnode"
description: "Discussion on \"How to get the current directory in python?\". In this python tutorial, we look at how you can get the current working directory in Python and how you can change the working directory."
url: "https://hashnode.com/posts/how-to-get-the-current-directory-in-python/60a795d420d1f45ceb7ec259"
---

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

Discussion

# [How to get the current directory in python?](https://shorttechtutorials.hashnode.dev/how-to-get-the-current-directory-in-python?utm_source=hashnode&utm_medium=feed)

In this python tutorial, we look at how you can get the current working directory in Python and how you can change the working directory.

May 21, 2021 · 3 min read · shorttechtutorials.hashnode.dev  
Read the article

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

## Written by

[Short Tech Tutorials](https://hashnode.com/@shorttutorials)

@shorttutorials

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

An initiative at Flexiple, to write short curated tutorials around often used or interesting concepts.

## Responses 1

Markdown supported · ⌘↵ to post

[Christian Ledermann](https://hashnode.com/@cleder)

[May 22, 2021](https://hashnode.com/posts/how-to-get-the-current-directory-in-python/60a795d420d1f45ceb7ec259/comment/60a9394d5379f65d10b5fbcf)

I prefer pathlib for interacting with the filesystem
