Changeset View
Changeset View
Standalone View
Standalone View
setup-kolab.py
Show All 13 Lines | |||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||||
# GNU General Public License for more details. | # GNU General Public License for more details. | ||||
# You should have received a copy of the GNU General Public License | # You should have received a copy of the GNU General Public License | ||||
# along with this program. If not, see <http://www.gnu.org/licenses/>. | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||||
# | # | ||||
from __future__ import print_function | |||||
import logging | import logging | ||||
import os | import os | ||||
import sys | import sys | ||||
# For development purposes | # For development purposes | ||||
sys.path = ['.'] + sys.path | sys.path = ['.'] + sys.path | ||||
import pykolab | import pykolab | ||||
from pykolab.setup import Setup | from pykolab.setup import Setup | ||||
from pykolab.translate import _ | from pykolab.translate import _ | ||||
try: | try: | ||||
from pykolab.constants import * | from pykolab.constants import * | ||||
except ImportError, e: | except ImportError, e: | ||||
print >> sys.stderr, _("Cannot load pykolab/constants.py:") | print(_("Cannot load pykolab/constants.py:"), file=sys.stderr) | ||||
print >> sys.stderr, "%s" % e | print("%s" % e, file=sys.stderr) | ||||
sys.exit(1) | sys.exit(1) | ||||
if __name__ == "__main__": | if __name__ == "__main__": | ||||
setup = Setup() | setup = Setup() | ||||
setup.run() | setup.run() |