Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.chdir
- os.chdir("/path/to/change/to")
- from __future__ import with_statement
- from grizzled.os import working_directory
- with working_directory(path_to_directory):
- # code in here occurs within the directory
- # code here is in the original directory
Add Comment
Please, Sign In to add comment