File: python-whiteboard-test

package info (click to toggle)
python-whiteboard 1.0%2Bgit20140207-0.1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 1,556 kB
  • ctags: 252
  • sloc: python: 1,691; xml: 61; makefile: 25; sh: 12
file content (26 lines) | stat: -rwxr-xr-x 484 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
#!/usr/bin/python
# -*- coding: utf-8 -*-

import sys, os

def main():
	localpath = os.path.split(os.path.abspath(sys.argv[0]))[0]
	teststuff = os.path.join(localpath, 'stuff')
	if not os.path.isdir(teststuff):
		print "Not a testing environment"
		sys.exit(0)
	
	#apply our directories and test environment
	os.chdir(teststuff)
	sys.path.insert(0, teststuff)
	
	print "Using directory: " + teststuff
	
	import pywhiteboard
	pywhiteboard.main()


if __name__ == '__main__': main()