diff --git a/templates/wsgi.py.erb b/templates/wsgi.py.erb index bb55740e..4ad9f0a5 100644 --- a/templates/wsgi.py.erb +++ b/templates/wsgi.py.erb @@ -5,7 +5,7 @@ import sys os.environ['PUPPETBOARD_SETTINGS'] = '<%= @basedir %>/puppetboard/settings.py' activate_this = '<%= @basedir %>/virtenv-puppetboard/bin/activate_this.py' -execfile(activate_this, dict(__file__=activate_this)) +exec(open(activate_this,"rb").read(), dict(__file__=activate_this)) me = os.path.dirname(os.path.abspath(__file__)) # Add us to the PYTHONPATH/sys.path if we're not on it