Skip to content

Commit c6b9e25

Browse files
committed
cleanup of __init__.py after moving all classes into separate files
1 parent 016a880 commit c6b9e25

File tree

1 file changed

+12
-25
lines changed

1 file changed

+12
-25
lines changed

OMPython/__init__.py

Lines changed: 12 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -7,33 +7,10 @@
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 signal
21-
import subprocess
22-
import sys
23-
import tempfile
24-
import time
25-
import uuid
26-
import xml.etree.ElementTree as ET
27-
import numpy as np
28-
import pyparsing
29-
import importlib
30-
import zmq
31-
import pathlib
32-
import warnings
3311

34-
35-
# TODO: replace this with the new parser
36-
from OMPython import OMTypedParser, OMParser
12+
from OMPython.OMCSession import OMCSessionBase, OMCSessionZMQ
13+
from OMPython.ModelicaSystem import ModelicaSystem, ModelicaSystemError
3714

3815
__license__ = """
3916
This file is part of OpenModelica.
@@ -78,3 +55,13 @@
7855
# add the handlers to the logger
7956
logger.addHandler(logger_console_handler)
8057
logger.setLevel(logging.WARNING)
58+
59+
60+
# global names imported if import 'from OMPython import *' is used
61+
__all__ = [
62+
'ModelicaSystem',
63+
'ModelicaSystemError',
64+
65+
'OMCSessionZMQ',
66+
'OMCSessionBase',
67+
]

0 commit comments

Comments
 (0)