We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b77e98 commit 7aeea71Copy full SHA for 7aeea71
src/ansys/dpf/core/__init__.py
@@ -15,6 +15,10 @@
15
16
spec = pkgutil.get_loader(__name__)
17
USER_DATA_PATH = os.path.dirname(spec.get_filename(__name__))
18
+ # Handle the case of ansys-dpf-core loaded in dpf-site.zip for Python custom operators
19
+ if "dpf-site.zip" in USER_DATA_PATH:
20
+ from tempfile import mkdtemp
21
+ USER_DATA_PATH = mkdtemp(prefix="PyDPF-Core_")
22
if not os.path.exists(USER_DATA_PATH): # pragma: no cover
23
os.makedirs(USER_DATA_PATH)
24
0 commit comments