Changeset View
Changeset View
Standalone View
Standalone View
kolab-cli.py
Show All 12 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 | ||||
from pykolab.translate import _ | from pykolab.translate import _ | ||||
from pykolab.cli import Cli | from pykolab.cli import Cli | ||||
try: | try: | ||||
import pykolab.logger | import pykolab.logger | ||||
except ImportError, e: | except ImportError, e: | ||||
print >> sys.stderr, _("Cannot load pykolab/logger.py:") | print(_("Cannot load pykolab/logger.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__": | ||||
kolab = Cli() | kolab = Cli() | ||||
kolab.run() | kolab.run() |