File: python-whiteboard

package info (click to toggle)
python-whiteboard 1.0%2Bgit20211001-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,620 kB
  • sloc: python: 1,713; xml: 61; makefile: 24; sh: 12
file content (28 lines) | stat: -rwxr-xr-x 472 bytes parent folder | download
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
27
28
#!/usr/bin/python3
# -*- coding: utf-8 -*-

from __future__ import print_function
import sys, os

STUFFDIR = '/usr/share/python-whiteboard'

def main():
	global STUFFDIR
	if not os.path.isdir(STUFFDIR):
		print("Can't find " + STUFFDIR)
		sys.exit(1)
	
	#apply our directories and test environment
	os.chdir(STUFFDIR)
	sys.path.insert(0, STUFFDIR)
	
	print("Using directory: " + STUFFDIR)
	
	import pywhiteboard
	pywhiteboard.main()


if __name__ == '__main__': main()