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
This commit is contained in:
andrew committed 2024-02-26 20:28:54 -05:00
1 parent 27d9296ce1
commit 86a395d08d
1 file changed
+1 -2
+1 -2
View File
@@ -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