Dynamically loading Python application code from database under Google App Engine

前端 未结 3 2176
终归单人心
终归单人心 2020-12-29 14:14

I need to store python code in a database and load it in some kind of bootstrap.py application for execution. I cannot use filesystem because I\'m using GAE, so this is my o

3条回答
  •  没有蜡笔的小新
    2020-12-29 15:17

    If you want a more robust mechanism, you probably want to read PEP302, which describes input hooks. You can use these to import code rather than having to eval it.

提交回复
热议问题