Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python current working directory

# If by "current working directory" you mean 
# the directory in which is saved the script in execution, then:
import os
cwd = os.path.dirname(os.path.realpath(__file__))
print(cwd)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #current #working #directory
ADD COMMENT
Topic
Name
6+5 =