From 86a395d08d738b1a70e3715a16344ba8ca69ea0a Mon Sep 17 00:00:00 2001 From: andrew Date: Mon, 26 Feb 2024 20:28:54 -0500 Subject: [PATCH] Remove final direct use of relpath instead of abspath Fixes another possible error case when tmpfs is not on the same disk as the cwd --- Client/utils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Client/utils.py b/Client/utils.py index 914f389..cb32315 100644 --- a/Client/utils.py +++ b/Client/utils.py @@ -146,8 +146,7 @@ def makefile_command(net_path, make_path, out_path, compiler): # Build with EVALFILE= to embed NNUE files if net_path: - rel_net_path = os.path.relpath(os.path.abspath(net_path), make_path) - command += ['EVALFILE=%s' % (rel_net_path.replace('\\', '/'))] + command += ['EVALFILE=%s' % (os.path.abspath(net_path).replace('\\', '/'))] return command