Statistics
| Branch: | Tag: | Revision:

root / lib / __init__.py @ fb62843c

History | View | Annotate | Download (1.2 kB)

1 2f31098c Iustin Pop
#
2 a8083063 Iustin Pop
#
3 a8083063 Iustin Pop
4 4a6fce31 Michael Hanselmann
# Copyright (C) 2006, 2007, 2012 Google Inc.
5 a8083063 Iustin Pop
#
6 a8083063 Iustin Pop
# This program is free software; you can redistribute it and/or modify
7 a8083063 Iustin Pop
# it under the terms of the GNU General Public License as published by
8 a8083063 Iustin Pop
# the Free Software Foundation; either version 2 of the License, or
9 a8083063 Iustin Pop
# (at your option) any later version.
10 a8083063 Iustin Pop
#
11 a8083063 Iustin Pop
# This program is distributed in the hope that it will be useful, but
12 a8083063 Iustin Pop
# WITHOUT ANY WARRANTY; without even the implied warranty of
13 a8083063 Iustin Pop
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 a8083063 Iustin Pop
# General Public License for more details.
15 a8083063 Iustin Pop
#
16 a8083063 Iustin Pop
# You should have received a copy of the GNU General Public License
17 a8083063 Iustin Pop
# along with this program; if not, write to the Free Software
18 a8083063 Iustin Pop
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19 a8083063 Iustin Pop
# 02110-1301, USA.
20 a8083063 Iustin Pop
21 a8083063 Iustin Pop
22 a8083063 Iustin Pop
# empty file for package definition
23 fe267188 Iustin Pop
24 fe267188 Iustin Pop
"""Ganeti python modules"""
25 4a6fce31 Michael Hanselmann
26 4a6fce31 Michael Hanselmann
try:
27 4a6fce31 Michael Hanselmann
  from ganeti import ganeti
28 4a6fce31 Michael Hanselmann
except ImportError:
29 4a6fce31 Michael Hanselmann
  pass
30 4a6fce31 Michael Hanselmann
else:
31 4a6fce31 Michael Hanselmann
  raise Exception("A module named \"ganeti.ganeti\" was successfully imported"
32 4a6fce31 Michael Hanselmann
                  " and should be removed as it can lead to importing the"
33 4a6fce31 Michael Hanselmann
                  " wrong module(s) in other parts of the code, consequently"
34 4a6fce31 Michael Hanselmann
                  " leading to failures which are difficult to debug")