keystone  18.0.0
About: OpenStack Keystone (Core Service: Identity) provides an authentication and authorization service for other OpenStack services. Provides a catalog of endpoints for all OpenStack services.
The "Victoria" series (maintained release).
  Fossies Dox: keystone-18.0.0.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

manage.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 
3 # Copyright 2013 OpenStack Foundation
4 #
5 # Licensed under the Apache License, Version 2.0 (the "License"); you may
6 # not use this file except in compliance with the License. You may obtain
7 # a copy of the License at
8 #
9 # http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 # License for the specific language governing permissions and limitations
15 # under the License.
16 
17 import os
18 import sys
19 
20 from keystone.cmd import cli
21 
22 
23 # If ../../keystone/__init__.py exists, add ../../ to Python search path, so
24 # that it will override what happens to be installed in
25 # /usr/(local/)lib/python...
26 possible_topdir = os.path.normpath(os.path.join(os.path.abspath(__file__),
27  os.pardir,
28  os.pardir,
29  os.pardir))
30 if os.path.exists(os.path.join(possible_topdir,
31  'keystone',
32  '__init__.py')):
33  sys.path.insert(0, possible_topdir)
34 
35 
36 # entry point.
37 def main():
38  developer_config = os.path.join(possible_topdir, 'etc', 'keystone.conf')
39  if not os.path.exists(developer_config):
40  developer_config = None
41  cli.main(argv=sys.argv, developer_config_file=developer_config)
keystone.cmd
Definition: __init__.py:1
keystone.cmd.manage.main
def main()
Definition: manage.py:37