Changeset View
Changeset View
Standalone View
Standalone View
kolabd.py
Show All 15 Lines | |||||
# 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/>. | ||||
# | # | ||||
import sys | import sys | ||||
# For development purposes | # For development purposes | ||||
sys.path = [ '.' ] + sys.path | sys.path = [ '.' ] + sys.path | ||||
Lint: PEP8 E201: whitespace after '[' | |||||
Lint: PEP8 E202 whitespace before ']' Lint: PEP8 E202: whitespace before ']' | |||||
from pykolab.translate import _ | from pykolab.translate import _ | ||||
Lint: PEP8 E402 module level import not at top of file 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 kolabd | import kolabd | ||||
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__": | ||||
kolabd = kolabd.KolabDaemon() | kolabd = kolabd.KolabDaemon() | ||||
kolabd.run() | kolabd.run() | ||||
whitespace after '['