Skip to content

Commit f321bbb

Browse files
committed
launch kwserver automatically before running examples
1 parent 8cb395d commit f321bbb

File tree

7 files changed

+1043
-6
lines changed

7 files changed

+1043
-6
lines changed

src/ansys/dyna/core/pre/__init__.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,22 @@
11
# -*- coding: utf-8 -*-
2+
import logging
3+
import os
4+
5+
import appdirs
6+
7+
from ansys.dyna.core.pre.dynalogging import Logger
8+
9+
LOG = Logger(level=logging.ERROR, to_file=False, to_stdout=True)
10+
LOG.debug("Loaded logging module as LOG")
11+
12+
_LOCAL_PORTS = []
13+
14+
try:
15+
import importlib.metadata as importlib_metadata
16+
except ModuleNotFoundError: # pragma: no cover
17+
import importlib_metadata
18+
19+
# __version__ = importlib_metadata.version(__name__.replace(".", "-"))
220

321
from .dynabase import *
422
from .dynadem import DynaDEM

0 commit comments

Comments
 (0)