Answers for "how to get python to get current directory"

17

python get current directory

import os

print(os.getcwd())
Posted by: Guest on March-02-2021
9

get path to current directory python

import os
os.path.abspath(os.getcwd())
Posted by: Guest on September-16-2020

Code answers related to "how to get python to get current directory"

Python Answers by Framework

Browse Popular Code Answers by Language