workdir: create tmpfiles in the correct directory
[yap.git] / yap.py
blob95d68f61fedbdc86bc42af8e5b625e8622794d33
1 #!/usr/bin/env python
3 import sys
4 import os
6 version = '__VERSION__'
8 if sys.version[0] < 2 or sys.version[1] < 3:
9 print >> sys.stderr, "Python 2.3 or better required"
10 os.exit(1)
12 dir = os.path.dirname(os.path.dirname(sys.argv[0]))
13 sys.path.insert(0, os.path.join(dir, 'lib', 'yap'))
15 import yap
16 x = yap.yap.Yap()
17 x.version = version
18 x.main(sys.argv[1:])