Answers for "python get directory starting"

17

python get current directory

import os

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

get working directory python

import os
os.getcwd()
Posted by: Guest on May-23-2020
0

python how to get directory of script

import os
print(os.path.abspath(''))
Posted by: Guest on December-04-2020

Code answers related to "python get directory starting"

Python Answers by Framework

Browse Popular Code Answers by Language