Skip to content

Commit 9d14f3f

Browse files
committed
Add a DEFAULT_SERVER_DEBUG global variable
1 parent f5e9ff8 commit 9d14f3f

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/ansys/dpf/core/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@
128128

129129
SERVER = None
130130
SERVER_CONFIGURATION = None
131+
DEFAULT_SERVER_DEBUG = None
131132

132133
_server_instances = []
133134

src/ansys/dpf/core/server_types.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,8 @@ def __init__(self):
445445
self._info_instance = None
446446
self._docker_config = server_factory.RunningDockerConfig()
447447
self._server_meet_version = {}
448+
if core.DEFAULT_SERVER_DEBUG is not None:
449+
self.start_debug(folder_path=core.DEFAULT_SERVER_DEBUG)
448450

449451
def set_as_global(self, as_global=True):
450452
"""Set the current server as global if necessary.

0 commit comments

Comments
 (0)