Changeset View
Changeset View
Standalone View
Standalone View
wallace.py
Show All 23 Lines | |||||
# For development purposes | # For development purposes | ||||
sys.path.extend(['.', '..']) | sys.path.extend(['.', '..']) | ||||
from pykolab.translate import _ | from pykolab.translate import _ | ||||
try: | try: | ||||
from pykolab.constants import * | from pykolab.constants import * | ||||
except ImportError, e: | except ImportError as e: | ||||
print(_("Cannot load pykolab/constants.py:"), file=sys.stderr) | print(_("Cannot load pykolab/constants.py:"), file=sys.stderr) | ||||
print("%s" % e, file=sys.stderr) | print("%s" % e, file=sys.stderr) | ||||
sys.exit(1) | sys.exit(1) | ||||
import wallace | import wallace | ||||
if __name__ == "__main__": | if __name__ == "__main__": | ||||
wallace = wallace.WallaceDaemon() | wallace = wallace.WallaceDaemon() | ||||
wallace.run() | wallace.run() |