[CI] resolve import when using cmp_pcm.py from command line or from within scripts.
- Related issues: #1189 (closed)
- Requested reviewers: @pihlajakuja
Reason why this change is needed
- cmp_pcm.py cannot be used from the command line since the addition of the PEAQ ODG measure. This is due to an import statement. The fix is a bit ugly but it works, in case anyone wants to use it.
Description of the change
- Import from either
.constants
orconstants
within a try-catch block.
Affected operating points
- None. Only enables usage of cmp_pcm.py from command line.
Related to #1189 (closed)