summaryrefslogtreecommitdiffstats
path: root/wallace.py
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-03-02 15:49:04 +0000
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-03-02 15:49:04 +0000
commit91102c4fd11e4f4f4539bb1522d32d306e1cd904 (patch)
tree0ab57158fc6267cfd3cf72f268dafb0bc582ad0a /wallace.py
parentb481dac3b79ed078879516d1d720448e3591d138 (diff)
downloadpykolab-91102c4fd11e4f4f4539bb1522d32d306e1cd904.tar.gz
Add the wallace run code
Diffstat (limited to 'wallace.py')
-rwxr-xr-xwallace.py40
1 files changed, 40 insertions, 0 deletions
diff --git a/wallace.py b/wallace.py
new file mode 100755
index 0000000..3a5bd01
--- /dev/null
+++ b/wallace.py
@@ -0,0 +1,40 @@
+#!/usr/bin/python
+#
+# Copyright 2010-2012 Kolab Systems AG (http://www.kolabsys.com)
+#
+# Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen a kolabsys.com>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; version 3 or, at your option, any later version
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Library General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+#
+
+import sys
+
+# For development purposes
+sys.path.extend(['.', '..'])
+
+from pykolab.translate import _
+
+try:
+ from pykolab.constants import *
+except ImportError, e:
+ print >> sys.stderr, _("Cannot load pykolab/constants.py:")
+ print >> sys.stderr, "%s" % e
+ sys.exit(1)
+
+import wallace
+
+if __name__ == "__main__":
+ wallace = wallace.WallaceDaemon()
+ wallace.run()
+