Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Python
get path to current directory python
Rodrigo A. PErez
Programming language:
Python
2021-07-12 11:04:18
0
Q:
get path to current directory python
Willk
Code:
Python
2021-02-13 01:19:35
import
os
os
.
path
.abspath(
os
.getcwd())
0
Clara Hani
Code:
Python
2021-07-07 22:54:20
import
pathlib
pathlib
.Path
(__
file__
)
.parent
.absolute
()
1
Tags
path
python
get
Related
python pathlib current file path
python get parent directory
get current working directory python
python get path of current file
get path of open file python
how to use path to change working directory in python
python get base directory
python get filename from path
how to get all folders on path in python
python get list of files in path
python list files in current directory
python get full path
python os get dir path
os get current directory
find the path to a file python
get directory of file python
python get script path
New to Communities?
Join the community