Skip to content

Commit 9777ed2

Browse files
committed
Fix for not finding omniORB anymore
1 parent 06f4fab commit 9777ed2

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

setup.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,11 @@ def generateIDL():
3939

4040

4141
try:
42-
# if we don't have omniidl then don't try to generate OMPythonIDL files.
43-
import omniidl
42+
# if we don't have omniidl or omniORB then don't try to generate OMPythonIDL files.
43+
try:
44+
import omniidl
45+
except ImportError:
46+
import omniORB
4447
hasomniidl = True
4548
generateIDL()
4649
except ImportError:
@@ -51,7 +54,7 @@ def generateIDL():
5154
OMPython_packages.extend(['OMPythonIDL', 'OMPythonIDL._OMCIDL', 'OMPythonIDL._OMCIDL__POA'])
5255

5356
setup(name='OMPython',
54-
version='3.0.0',
57+
version='3.0.1',
5558
description='OpenModelica-Python API Interface',
5659
author='Anand Kalaiarasi Ganeson',
5760
author_email='ganan642@student.liu.se',

0 commit comments

Comments
 (0)