Commit 91e47672 authored by norvell's avatar norvell
Browse files

Merge branch '1189-ci-cmp_pcm-py-does-not-work-as-command-line-tool' into 'main'

[CI] resolve import when using cmp_pcm.py from command line or from within scripts.

See merge request !1812
parents 8b5a1a24 96d0919f
Loading
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -15,7 +15,11 @@ sys.path.append(os.path.join(os.path.dirname(THIS_PATH), "../scripts"))
import numpy as np
import pyaudio3dtools
import pyivastest
# Hack to resolve import when using from command line or from within scripts.
try:
    from .constants import ODG_PATTERN_PQEVALAUDIO
except ImportError:
    from constants import ODG_PATTERN_PQEVALAUDIO


def cmp_pcm(