Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

get drive path python

>>> import os
>>> os.getcwd()
'C:Python34'
>>> os.chdir('C:WindowsSystem32')
>>> os.getcwd()
'C:WindowsSystem32'
Source by automatetheboringstuff.com #
 
PREVIOUS NEXT
Tagged: #drive #path #python
ADD COMMENT
Topic
Name
1+3 =