blob: 7aacc6473886986abb79f2e4668f315fe357c75e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
diff --git a/io_scene_gltf2/io/com/gltf2_io_draco_compression_extension.py b/io_scene_gltf2/io/com/gltf2_io_draco_compression_extension.py
index 58f81125..25e3897b 100644
--- a/io_scene_gltf2/io/com/gltf2_io_draco_compression_extension.py
+++ b/io_scene_gltf2/io/com/gltf2_io_draco_compression_extension.py
@@ -3,6 +3,7 @@
# SPDX-License-Identifier: Apache-2.0
import os
+import site
import sys
from pathlib import Path
import bpy
@@ -20,7 +21,7 @@ def dll_path() -> Path:
python_lib = Path('{v[0]}.{v[1]}/python/lib'.format(v=bpy.app.version))
python_version = 'python{v[0]}.{v[1]}'.format(v=sys.version_info)
- path = os.environ.get('BLENDER_EXTERN_DRACO_LIBRARY_PATH')
+ path = f"{site.getsitepackages()[0]}/libextern_draco.so"
if path is None:
path = {
'win32': blender_root / python_lib / 'site-packages',
|