File: version

package info (click to toggle)
advene 1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 10,588 kB
  • ctags: 6,326
  • sloc: xml: 56,303; python: 50,385; perl: 741; sh: 186; makefile: 83; ansic: 18
file content (15 lines) | stat: -rwxr-xr-x 401 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#! /usr/bin/env python

"""Return the version number of the current advene tree.
"""
import sys
import os

dir=os.path.abspath( os.path.dirname(os.path.dirname(sys.argv[0]) ) )
if not os.path.exists(os.path.join( dir, "lib", "advene", "core", "version.py" )):
    print "N/C"
    sys.exit(1)

sys.path.insert(0, os.path.join( dir, "lib" ))
import advene.core.version
print advene.core.version.version