From 949adebd0fa18574d846fde1c7fa2b82227054a5 Mon Sep 17 00:00:00 2001
From: Ian Bell <ian.bell@nist.gov>
Date: Fri, 17 Sep 2021 11:30:03 -0400
Subject: [PATCH] Load REFPROP from RPPREFIX variable

---
 src/time_Ar0n.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/time_Ar0n.cpp b/src/time_Ar0n.cpp
index 08dbd0f..d9f615e 100644
--- a/src/time_Ar0n.cpp
+++ b/src/time_Ar0n.cpp
@@ -139,7 +139,7 @@ int main()
 {
     // You may need to change this path to suit your installation
     // Note: forward-slashes are recommended.
-    std::string path = "C:/Program Files (x86)/REFPROP";
+    std::string path = std::getenv("RPPREFIX");
     std::string DLL_name = "";
 
     // Load the shared library and set up the fluid
-- 
GitLab