Skip to content

Commit 51fcc50

Browse files
committed
Apply ROOT fast init only on Linux
1 parent fb2d40f commit 51fcc50

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

MC/bin/o2_dpg_workflow_runner.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import socket
1414
import sys
1515
import traceback
16+
import platform
1617
try:
1718
from graphviz import Digraph
1819
havegraphviz=True
@@ -1031,6 +1032,11 @@ def speedup_ROOT_Init():
10311032
"""initialize some env variables that speed up ROOT init
10321033
and prevent ROOT from spawning many short-lived child
10331034
processes"""
1035+
1036+
# only do it on Linux
1037+
if platform.system() != 'Linux':
1038+
return
1039+
10341040
if os.environ.get('ROOT_LDSYSPATH')!=None and os.environ.get('ROOT_CPPSYSINCL')!=None:
10351041
# do nothing if already defined
10361042
return

0 commit comments

Comments
 (0)