Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

os get current directory

import os

#Get Current working Directory
currentDirectory = os.getcwd()

#Change the Current working Directory
os.chdir('/home/varun')
Source by thispointer.com #
 
PREVIOUS NEXT
Tagged: #os #current #directory
ADD COMMENT
Topic
Name
7+4 =