File: moap

package info (click to toggle)
moap 0.2.7-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, squeeze, wheezy
  • size: 1,360 kB
  • ctags: 904
  • sloc: python: 5,590; sh: 818; makefile: 228; cs: 16
file content (31 lines) | stat: -rwxr-xr-x 703 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/env python
# -*- Mode: Python -*-
# vi:si:et:sw=4:sts=4:ts=4

import sys

# first try to import moap
try:
    import moap
except ImportError:
    sys.stderr.write('''The moap binary cannot find its python package.
This means that the 'moap' directory containing __init__.py is not on your
PYTHONPATH.
Typically this is due to a broken install.
Please fix the problem, and verify that it is fixed by starting python and
typing:

>>> import moap

and assure it doesn't raise an exception.

''')
    sys.exit(1)

# now load the main function
try:
    from moap.main import main
    sys.exit(main(sys.argv[1:]))
except ImportError, e:
    from moap.util import deps
    deps.handleImportError(e)