blob: 92d1b3c40e9d5ad092c8f73d70c8d04caa17e863 (
plain)
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
32
33
34
35
|
#!@PYTHON@
"""\
nbb - ndim's branch builder frontend
"""
import sys
import os
if __name__ == '__main__':
pythondir = "@pythondir@"
lib_found = False
for cond, path in [
(1, sys.path),
(os.path.exists(pythondir), [pythondir] + sys.path),
]:
if cond:
sys.path = path
try:
import nbb_lib
lib_found = True
break
except ImportError, e:
pass
if not lib_found:
sys.stderr.write("nbb: Fatal: Could not load nbb_lib.\n")
sys.exit(3)
#sys.stdout.write("sys.path=%s\n" % repr(sys.path))
#sys.stdout.flush()
assert(nbb_lib.version == "@PACKAGE_VERSION@")
nbb_lib.main(sys.argv)
# vim: syntax=python
# Local Variables:
# mode: python
# End:
|