Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@
.idea/
.vs/
.DS_Store
.vscode/
1 change: 1 addition & 0 deletions OMPython/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -698,6 +698,7 @@ def __init__(self, readonly=False, timeout = 10.00, docker = None, dockerContain
# set omc executable path and args
self._set_omc_command([
"--interactive=zmq",
"--locale=C",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This won't work with some older OMC versions

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you talking about like 1.12 or later. Anyway people using such old OMC can use older pip install version of OMPython.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

then that information concerning the minimum OMC version should probably be put somewhere (Readme, setup.py, warning at import time?)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I load 1.9 versions of OMC that are older than this, and they work just fine... For zmq you could put it, but I guess not CORBA

"-z={0}".format(self._random_string)
])
# start up omc executable, which is waiting for the ZMQ connection
Expand Down