2008/3/7, Maryam Saeedi <[EMAIL PROTECTED]>: > > I have a problem using os.chdir on linux. What should I do if I want to > change to root directory? The below does not work: > > os.chdir("~/dir1") > > Thanks > > -- > http://mail.python.org/mailman/listinfo/python-list > >>> os.getcwd() '/home/michael' >>> os.chdir("/home/") >>> os.getcwd() '/home
I guess just be sure your user account has rights to the directory you're trying to change to and don't screw up the quotes?
-- http://mail.python.org/mailman/listinfo/python-list