~widelands-dev/widelands-website/trunk

« back to all changes in this revision

Viewing changes to mainpage/wlwebsite_wsgi.py

  • Committer: franku
  • Date: 2019-04-11 15:06:09 UTC
  • mto: This revision was merged to the branch mainline in revision 540.
  • Revision ID: somal@arcor.de-20190411150609-801l72ffxgr6gkui
converted to python 3.6 using 2to3 script

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
if activate_this is None:
17
17
    raise RuntimeException('Could not find virtualenv to start up!')
18
18
 
19
 
execfile(activate_this, dict(__file__=activate_this))
 
19
exec(compile(open(activate_this, "rb").read(), activate_this, 'exec'), dict(__file__=activate_this))
20
20
 
21
21
sys.path.append(parent_dir(code_directory))
22
22
sys.path.append(code_directory)