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
This commit is contained in:
Ghe Rivero 2011-11-08 21:20:51 +01:00
parent ba0b2aeea1
commit b65379fdb6
2 changed files with 11 additions and 2 deletions

View File

@ -20,7 +20,12 @@
# it will override what happens to be installed in /usr/(local/)lib/python...
import __init__
import source_environment
try:
import source_environment
except ImportError:
pass
from quantum.cli import main as cli
cli()

View File

@ -20,7 +20,11 @@
# it will override what happens to be installed in /usr/(local/)lib/python...
import __init__
import source_environment
try:
import source_environment
except ImportError:
pass
from quantum.server import main as server
server()