Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

get directory of file python

import os 
dir_path = os.path.dirname(os.path.realpath(__file__))
 
PREVIOUS NEXT
Tagged: #directory #file #python
ADD COMMENT
Topic
Name
3+5 =