Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python get dir

import os 
#full path
dir_path = os.path.dirname(os.path.realpath(__file__))

#current dir
cwd = os.getcwd()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #dir
ADD COMMENT
Topic
Name
4+9 =