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()
|