Sidharth Malhotra
Sidharth Malhotra

Reputation: 1

change directory (python) doesnt work in localhost

import os os.chdir("c:\Users") works in the command prompt but not on localhost (google app engine.) can anyone help.

Upvotes: 0

Views: 238

Answers (1)

Adam Crossland
Adam Crossland

Reputation: 14213

AppEngine restricts you from doing things that don't make sense. Your AppEngine application can't go wandering all over the filesystem once it is running on Google's servers, and Google's servers certainly don't have a C: drive.

Whatever you are trying to accomplish by changing directories, it's something that you need to accomplish in a different way in an AppEngine application.

Upvotes: 6

Related Questions