Changeset View
Changeset View
Standalone View
Standalone View
wallace.py
Show All 17 Lines | |||||
# along with this program. If not, see <http://www.gnu.org/licenses/>. | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||||
# | # | ||||
import sys | import sys | ||||
# For development purposes | # For development purposes | ||||
sys.path.extend(['.', '..']) | sys.path.extend(['.', '..']) | ||||
from pykolab.translate import _ | from pykolab.translate import _ | ||||
Lint: PEP8 E402: module level import not at top of file | |||||
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 >> sys.stderr, _("Cannot load pykolab/constants.py:") | ||||
print >> sys.stderr, "%s" % e | print >> sys.stderr, "%s" % e | ||||
sys.exit(1) | sys.exit(1) | ||||
import wallace | import wallace | ||||
Lint: PEP8 E402 module level import not at top of file Lint: PEP8 E402: module level import not at top of file | |||||
if __name__ == "__main__": | if __name__ == "__main__": | ||||
wallace = wallace.WallaceDaemon() | wallace = wallace.WallaceDaemon() | ||||
wallace.run() | wallace.run() | ||||
module level import not at top of file