Re: [Tutor] set current working dir

2015-03-17 Thread Dave Angel
On 03/16/2015 02:29 PM, Rajbir Singh wrote: i need to know how i can set current working dir in an executing phython using os module os.chdir() will change the current directory, but it changes it for the whole program (all threads), and the change lasts till the program terminates. Very of

Re: [Tutor] set current working dir

2015-03-16 Thread Ben Finney
Rajbir Singh writes: > i need to know how i can set current working dir in an executing > phython using os module Why must it be using the ‘os’ module? It's generally a bad idea to assume you need a specific module to provide the solution; better to describe what you need to do, and not assume w

Re: [Tutor] set current working dir

2015-03-16 Thread Oscar Benjamin
On 16 March 2015 at 18:29, Rajbir Singh wrote: > > i need to know how i can set current working dir in an executing phython > using os module If you explain why you want to do that then it may be that there is a better way to achieve what you want. It's usually not necessary to change the current

Re: [Tutor] set current working dir

2015-03-16 Thread Alan Gauld
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

[Tutor] set current working dir

2015-03-16 Thread Rajbir Singh
i need to know how i can set current working dir in an executing phython using os module ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor