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:
parent
ba0b2aeea1
commit
b65379fdb6
@ -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()
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user