1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/usr/bin/env python
# api: cli
# type: wrapper
# title: streamtuner2
# pack: bin=/usr/bin/streamtuner2
#
# Invocation script for /usr/share/streamtuner2/st2.py
import sys, os
sys.path.insert(0, "/usr/share/streamtuner2")
import st2
st2.main()
|
>
|
|
>
>
>
>
>
>
>
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/usr/bin/env python
# api: cli
# type: wrapper
# title: streamtuner2
# pack: bin=/usr/bin/streamtuner2
#
# Invocation script for /usr/share/streamtuner2/st2.py
import sys, os
sys.path.insert(0, "/usr/share/streamtuner2")
try:
import st2
st2.main()
except ImportError as e:
import traceback, re
print(traceback.format_exc())
name = re.findall("\w+$", e.message)[0]
print("Alternatively try to start streamtuner2 with Python3: `python3 /usr/bin/streamtuner2`")
print("Else you might need to install missing modules: `pip install {}` or `pip3 install {}`\n".format(name, name))
|