Answers for "find the directory in which the python script location"

1

python get base directory

import os
os.path.dirname(os.path.realpath(__file__))
Posted by: Guest on May-11-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 "find the directory in which the python script location"

Python Answers by Framework

Browse Popular Code Answers by Language