forked from nglviewer/mdsrv
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmdsrv.wsgi.sample
More file actions
30 lines (22 loc) · 793 Bytes
/
Copy pathmdsrv.wsgi.sample
File metadata and controls
30 lines (22 loc) · 793 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#####
# configuration for the mdsrv wsgi app
# leave empty if no virtualenv is needed
APP_ENV = ''
# leave empty to use default config
APP_CFG = ''
#####
# do not change anything below unless you are sure
# see http://flask.pocoo.org/docs/deploying/mod_wsgi/
import os, sys
if APP_ENV:
if sys.version_info > (3,):
activate_this = os.path.join( APP_ENV, 'activate_this.py' )
with open( activate_this ) as f:
code = compile( f.read(), activate_this, 'exec' )
exec( code, dict( __file__=activate_this ) )
else:
activate_this = os.path.join( APP_ENV, 'activate_this.py' )
execfile( activate_this, dict( __file__=activate_this ) )
from mdsrv import app as application
if APP_CFG:
application.config.from_pyfile( APP_CFG )