DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python change working directory to file directory
import os abspath = os.path.abspath(__file__) dname = os.path.dirname(abspath) os.chdir(dname)
PREVIOUS
NEXT
Tagged:
#python
#change
#working
#directory
#file
#directory
ADD COMMENT
Topic
COMMENT
Name
2+9 =
Submit