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
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
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
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
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