You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: talkshow.py
+40-16Lines changed: 40 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,35 @@
1
1
importos
2
2
importmath
3
3
importglob
4
-
importsubprocess
4
+
importsys
5
5
6
6
fromtalkshowLoggerimportlogger
7
+
# function alias
8
+
debug=logger.debug
9
+
info=logger.info
10
+
warn=logger.warn
11
+
error=logger.error
12
+
info("Initialising talkshow. Version of Python: %s"%str(sys.version))
13
+
14
+
try:
15
+
importpyglet
16
+
info("pyglet seems installed and working fine.")
17
+
except:
18
+
logger.error("Pyglet (a python library) is not installed. Talkshow cannot work. Please install pyglet")
19
+
20
+
try:
21
+
importtinycss
22
+
info("tinyCSS seems installed and working fine.")
23
+
except:
24
+
logger.error("TinyCSS (a python library) is not installed. Talkshow cannot work. Please install tinyCSS")
25
+
26
+
try:
27
+
importvlc
28
+
vlc_test_instance=vlc.Instance()
29
+
info("VLC seems available and working fine. Audio playback should work.")
30
+
except:
31
+
logger.error("There is a problem with VLC. Either you are using the wrong version of talkshow (32/64 bit), or there is a bug in the code, or you can try and install VLC.")
0 commit comments