Back to home page

EIC code displayed by LXR

 
 

    


Warning, /iDDS/main/bin/idds.wsgi.template is written in an unsupported language. File is not indexed.

0001 #!/usr/bin/env python
0002 #
0003 # Licensed under the Apache License, Version 2.0 (the "License");
0004 # You may not use this file except in compliance with the License.
0005 # You may obtain a copy of the License at
0006 # http://www.apache.org/licenses/LICENSE-2.0OA
0007 #
0008 # Authors:
0009 # - Wen Guan, <wen.guan@cern.ch>, 2019
0010 
0011 """----------------------
0012    Web service startup
0013 ----------------------"""
0014 
0015 import os
0016 import sys
0017 
0018 # If IDDS_CONFIG is not already set, default to <prefix>/etc/idds/idds.cfg
0019 if "IDDS_CONFIG" not in os.environ:
0020     os.environ["IDDS_CONFIG"] = os.path.join(sys.prefix, "etc", "idds", "idds.cfg")
0021 
0022 from idds.rest.v1.app import create_app  # noqa: E402
0023 
0024 
0025 application = create_app()