summaryrefslogtreecommitdiff
path: root/realtime/rt/__init__.py
blob: fbde8f4d4bf8a2993c98da24fc9eaa3285ffa30e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Add pycdec to the Python path if user hasn't
import os
import sys
try:
    import cdec
except ImportError as ie:
    try:
        pycdec = os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))), 'python')
        sys.path.append(pycdec)
        import cdec
    except:
        sys.stderr.write('Error: cannot import pycdec.  Please check the cdec/python is built.\n')
        raise ie

# Regular init imports
from rt import *
import aligner
import decoder
import util