[Tutor] how to change the current working directory path in ipython.
[Tutor] how to change the current working directory path in ipython.
Joel Goldstick joel.goldstick at gmail.com
Wed Feb 8 15:33:01 CET 2012
- Previous message: [Tutor] how to change the current working directory path in ipython.
- Next message: [Tutor] PyQT GUI Threading example
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Wed, Feb 8, 2012 at 9:24 AM, Debashish Saha <silideba at gmail.com> wrote: > how to change the current working directory path in ipython. > > my current directory path is > pwd > Out[2]: u'C:\\Users\\as' > > now if i want to take the path to a subfolder of above > 'C:\\Users\\as', what do i have to do? > _______________________________________________ > Tutor maillist - Tutor at python.org > To unsubscribe or change subscription options: > http://mail.python.org/mailman/listinfo/tutor Try looking here: http://docs.python.org/tutorial/stdlib.html#operating-system-interface There is a module in python called os Here is an example from the documentation >>> import os >>> os.getcwd() # Return the current working directory 'C:\\Python26' >>> os.chdir('/server/accesslogs') # Change current working directory >>> os.system('mkdir today') # Run the command mkdir in the system shell 0 -- Joel Goldstick