Answers for "directory of python script in folder"

0

python how to get directory of script

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

python file directory

from os import path
dir_path = path.dirname(__file__)
Posted by: Guest on March-01-2021

Code answers related to "directory of python script in folder"

Python Answers by Framework

Browse Popular Code Answers by Language