I want to use IPython under GAE to debug scripts locally:
import ipdb; ipdb.set_trace()
but GAE restricts loading some modules from sys.path. Can I bypass this somehow?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can hack the GAE SDK’s restrictions of course (you do have its sources on your computer, and it’s open-source code!-), but, if you do, it won’t catch the cases in which your code erroneously tries to import modules it won’t be allowed to use on Google’s servers. So I suggest, at the very least, if you do perform such a hack, make it conditional on some environment variable (
if os.getenv('MYHACK')=='Y':…), so that it’s disabled by default (and the GAE SDK behaves normally) and you only enable it explicitly at your shell with e.g.at a
bash(orsh😉 prompt.