From: Stuart Prescott <stuart@debian.org>
Date: Tue, 4 Feb 2025 20:58:09 +1100
Subject: Set library location to pick up precompiled models

models can be precompiled or compiled just-in-time; for a binary distribution such
as Debian, it makes sense to precompile the models and ship them in the package.
---
 sasmodels/kerneldll.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sasmodels/kerneldll.py b/sasmodels/kerneldll.py
index 7b86e09..902df93 100644
--- a/sasmodels/kerneldll.py
+++ b/sasmodels/kerneldll.py
@@ -70,7 +70,7 @@ from __future__ import print_function
 
 import sys
 import os
-from os.path import join as joinpath, splitext
+from os.path import join as joinpath, splitext, abspath, dirname
 import subprocess
 import shlex
 import tempfile
@@ -239,7 +239,7 @@ def dll_path(model_file, dtype):
     Complete path to the dll for the model.  Note that the dll may not
     exist yet if it hasn't been compiled.
     """
-    return os.path.join(SAS_DLL_PATH, dll_name(model_file, dtype))
+    return dll_name(model_file, dtype)
 
 
 def make_dll(source, model_info, dtype=F64, system=False):
