| 1 | #!/usr/bin/env python3 |
| 2 | |
| 3 | # pylint: disable=invalid-name, wrong-import-position |
| 4 | |
| 5 | ''' Wrapper for the lirc_setup thing, meant to be a symlink. ''' |
| 6 | |
| 7 | import sys |
| 8 | import os.path |
| 9 | |
| 10 | _HERE = os.path.dirname(os.path.realpath(__file__)) |
| 11 | sys.path.insert(0, _HERE) |
| 12 | |
| 13 | if os.path.exists(os.path.join(_HERE, '..','..', 'lirc.pc.in')): |
| 14 | sys.path.insert(0, os.path.join(_HERE, '..','..', 'python-pkg')) |
| 15 | |
| 16 | import mvc_control |
| 17 | mvc_control.main() |