File: bin

package info (click to toggle)
streamtuner2 2.2.2%2Bdfsg-2.2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 2,476 kB
  • sloc: python: 9,524; javascript: 1,116; makefile: 106; php: 51; sh: 7; perl: 3
file content (21 lines) | stat: -rwxr-xr-x 613 bytes parent folder | download | duplicates (2)
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))