Answers for "current directory python path"

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 "current directory python path"

Python Answers by Framework

Browse Popular Code Answers by Language