Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
execfile() has been removed from Python 3 #8
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.