[Tutor] set current working dir

Alan Gauld alan.gauld at btinternet.com
Tue Mar 17 00:57:57 CET 2015


On 16/03/15 18:29, Rajbir Singh wrote:
> i need to know how i can set current working dir in an executing phython
> using os module


try

os.chdir('/some/path/here')



-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos




More information about the Tutor mailing list