File: python-whiteboard-test

package info (click to toggle)
python-whiteboard 1.0%2Bgit20170915-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,568 kB
  • sloc: python: 1,702; xml: 61; makefile: 23; 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()