Skip to content

Commit 4b58c03

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

OMPython/OMCSession.py

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

374374
try:
375-
result = self._session.sendExpression(expression)
375+
result = self._session.sendExpression(command=expression, parsed=False)
376376
result_parts = result.split('\n')
377377
pathstr_resolved = result_parts[1]
378378
pathstr_resolved = pathstr_resolved[1:-1] # remove quotes

0 commit comments

Comments
 (0)