File: cxxtestgen

package info (click to toggle)
cxxtest 4.4%2Bgit171022-1
  • links: PTS
  • area: main
  • in suites: buster
  • size: 2,820 kB
  • sloc: cpp: 9,567; python: 9,553; xml: 435; sh: 258; ruby: 229; makefile: 86; ansic: 68; perl: 16
file content (18 lines) | stat: -rwxr-xr-x 433 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env python

import sys
import os.path

try:
    import cxxtest.cxxtestgen
except ImportError:
    currdir = os.path.dirname(os.path.abspath(__file__))

    if sys.version_info < (3,0):
        sys.path.append( os.path.abspath( os.path.sep.join([currdir, '..']) ) )
    else:
        sys.path.append( os.path.abspath( os.path.sep.join([currdir, '..', python3]) ) )

    import cxxtest.cxxtestgen

cxxtest.cxxtestgen.main()