Skip to content

Commit b968d07

Browse files
committed
cleanup of __init__.py after moving all classes into separate files
1 parent 16eeb71 commit b968d07

File tree

1 file changed

+10
-24
lines changed

1 file changed

+10
-24
lines changed

OMPython/__init__.py

Lines changed: 10 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -7,39 +7,17 @@
77
omc.sendExpression("command")
88
"""
99

10-
import shutil
11-
import abc
12-
import csv
13-
import getpass
1410
import logging
15-
import json
16-
import os
17-
import platform
18-
import psutil
19-
import re
20-
import shlex
21-
import signal
22-
import subprocess
2311
import sys
24-
import tempfile
25-
import time
26-
import uuid
27-
import xml.etree.ElementTree as ET
28-
import numpy as np
29-
import pyparsing
30-
import importlib
31-
import zmq
32-
import pathlib
33-
import warnings
3412

3513

3614
if sys.platform == 'darwin':
3715
# On Mac let's assume omc is installed here and there might be a broken omniORB installed in a bad place
3816
sys.path.append('/opt/local/lib/python2.7/site-packages/')
3917
sys.path.append('/opt/openmodelica/lib/python2.7/site-packages/')
4018

41-
# TODO: replace this with the new parser
42-
from OMPython import OMTypedParser, OMParser
19+
from OMPython.OMCSession import OMCSessionBase, OMCSessionZMQ
20+
from OMPython.ModelicaSystem import ModelicaSystem, ModelicaSystemError
4321

4422
__license__ = """
4523
This file is part of OpenModelica.
@@ -86,3 +64,11 @@
8664
logger.setLevel(logging.WARNING)
8765

8866

67+
# global names imported if import 'from OMPython import *' is used
68+
__all__ = [
69+
'ModelicaSystem',
70+
'ModelicaSystemError',
71+
72+
'OMCSessionZMQ',
73+
'OMCSessionBase',
74+
]

0 commit comments

Comments
 (0)