Answers for "get current path python os"

9

get path to current directory python

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

working directory python

import os
cwd = os.getcwd()
Posted by: Guest on March-09-2020
5

get diroctary in python

import os
cwd = os.getcwd()
print(cwd)
Posted by: Guest on June-14-2020
2

python get path of current file

import pathlib
pathlib.Path(__file__).parent.absolute()
Posted by: Guest on April-04-2020

Python Answers by Framework

Browse Popular Code Answers by Language