vmware-nsx/bin/quantum-server
Ghe Rivero b65379fdb6 Added try import to quantum-server and quantum-cli
Once that quantum is deployed there is no need to modified the python
path importing source_environment.

Change-Id: Iad4cce250137c6e5374ee90af6324f32f32da2ad
2011-11-08 21:20:51 +01:00

31 lines
990 B
Python
Executable File

#!/usr/bin/env python
# vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2011 Nicira Neworks, Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
# If ../quantum/__init__.py exists, add ../ to Python search path, so that
# it will override what happens to be installed in /usr/(local/)lib/python...
import __init__
try:
import source_environment
except ImportError:
pass
from quantum.server import main as server
server()