Uh oh!
There was an error while loading. Please reload this page.
OMCPath - #317
Conversation
7514c47 to
13fec2cComparec8bddac to
b59e473Compare1b64550 to
c45b4f7Compare@Sonyoyo could you please test if this is working on WSL and provide some feedback? I'm just coding blind regarding this option ... Feel free to use the testcase in |
syntron
commented
Jul 12, 2025
@ondras12345 could you please advice on the unittest? In |
* not working: 3.10 * working: 3.12
* this is scripting output and, thus, it cannot be parsed
see commit ID: aa74b36 - [OMCPath] add more functionality and docstrings
* differentiate between * Python >= 3.12 uses OMCPath based on OMC for filesystem operation * Python < 3.12 uses a pathlib.Path based implementation which is limited to OMCProcessLocal
error: "unlink" of "OMCPathReal" does not return a value (it only ever returns None) [func-returns-value]
adeas31
left a comment
There was a problem hiding this comment.
LGTM.
Important: due to limitations in pathlib.Path, this is not working for Python < 3.12! - I'm testing compatibility but got no overall success (local Linux seems to work / Windows fails for 3.10)
Did you figure out what is the limitation? Is there a workaround?
Uh oh!
There was an error while loading. Please reload this page.
syntron
commented
Oct 20, 2025
see 1acd916: there is a compatibility layer such that for Python < 3.12 pathlib.Path is used such that it will work on the same level as it is now (i.e. no regression but also not the new possibilities) |
Uh oh!
There was an error while loading. Please reload this page.
new class OMCPath which implements path handling based on OMC commands
currently just a prove of concept with a test case using docker
see issue #315 and PR #309
Important: due to limitations in pathlib.Path, this is not working for Python < 3.12! - I'm testing compatibility but got no overall success (local Linux seems to work / Windows fails for 3.10)