Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python set cwd to script directory

abspath = os.path.abspath(__file__)
dname = os.path.dirname(abspath)
os.chdir(dname)
 
PREVIOUS NEXT
Tagged: #python #set #cwd #script #directory
ADD COMMENT
Topic
Name
7+1 =