Revision 3bac1e87
b/snf-cyclades-gtools/synnefo/ganeti/eventd.py | ||
---|---|---|
45 | 45 |
import os |
46 | 46 |
path = os.path.normpath(os.path.join(os.getcwd(), '..')) |
47 | 47 |
sys.path.append(path) |
48 |
# Since Ganeti 2.7, debian package ships the majority of the python code in |
|
49 |
# a private module under '/usr/share/ganeti'. Add this directory to path |
|
50 |
# in order to be able to import ganeti. Also, add it to the start of path |
|
51 |
# to allow conflicts with Ganeti RAPI client. |
|
52 |
sys.path.insert(0, "/usr/share/ganeti") |
|
48 | 53 |
|
49 | 54 |
import json |
50 | 55 |
import logging |
Also available in: Unified diff