Advertisement
cesarzeta

python-whiteboard

Oct 2nd, 2012
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.44 KB | None | 0 0
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3.  
  4. import sys, os
  5.  
  6. STUFFDIR = '/usr/share/python-whiteboard'
  7.  
  8. def main():
  9.     global STUFFDIR
  10.     if not os.path.isdir(STUFFDIR):
  11.         print "Can't find " + STUFFDIR
  12.         sys.exit(1)
  13.  
  14.     #apply our directories and test environment
  15.     os.chdir(STUFFDIR)
  16.     sys.path.insert(0, STUFFDIR)
  17.  
  18.     print "Using directory: " + STUFFDIR
  19.  
  20.     import pywhiteboard
  21.     pywhiteboard.main()
  22.  
  23.  
  24. if __name__ == '__main__': main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement