Skip to content

Commit 3f69a95

Browse files
author
noklam
committed
Bug Fix on Window/Mac Openmp runtime link issue
1 parent 7494652 commit 3f69a95

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tsensor/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@
2323
"""
2424
__all__ = ["ast", "parsing", "viz", "analysis", "version"]
2525

26+
# To fix an OpenMP runtime link issue.
27+
import os
28+
os.environ['KMP_DUPLICATE_LIB_OK'] = "True"
29+
2630
# These classes/functions are the primary user interface so import them directly
2731
import tsensor.ast
2832
import tsensor.parsing

0 commit comments

Comments
 (0)