openshift/flask-example — pull request #8 by koulevprime (2014-04-18 03:58:54+00:00)
Title: execfile() has been removed from Python 3

With Python 3 doing away with execfile(), the only option now is exec(), which requires python code as input to execute. The virtualenv string is still kept as a global variable.

I have tested this code with Python 3.3, Python 2.7, and Python 2.6 on OpenShift, and it works out of the box on each of these cartridges.