Skip to content

Commit 458b875

Browse files
committed
[OMCPath._omc_resolve] use sendExpression() with parsed=False
* this is scripting output and, thus, it cannot be parsed
1 parent f256888 commit 458b875

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

OMPython/OMCSession.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ def _omc_resolve(self, pathstr: str) -> OMCPath:
375375
'cd(omcpath_cwd)')
376376

377377
try:
378-
result = self._session.sendExpression(expression)
378+
result = self._session.sendExpression(command=expression, parsed=False)
379379
result_parts = result.split('\n')
380380
pathstr_resolved = result_parts[1]
381381
pathstr_resolved = pathstr_resolved[1:-1] # remove quotes

0 commit comments

Comments
 (0)