From 3a5c243f6914ea8285098a3b04d3b80c0e9eaa04 Mon Sep 17 00:00:00 2001 From: stick <4157860+sticks-stuff@users.noreply.github.com> Date: Sun, 12 Dec 2021 16:02:01 +1300 Subject: [PATCH] Write exact directory when generating build file --- configure.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.py b/configure.py index c9ce69b..60dd864 100644 --- a/configure.py +++ b/configure.py @@ -59,13 +59,13 @@ vars = { 'configure_args': sys.argv[1:], - 'root': '.', + 'root': sys.path[0], 'builddir': 'build', 'spcomp': spcomp, 'spcflags': [ '-i${root}/scripting/include', '-h', '-v0' ] } - vars['spcflags'] += ('-i{}'.format(d) for d in include_dirs) + vars['spcflags'] += (f'-i{sys.path[0]}/{d}' for d in include_dirs) for key, value in vars.items(): build.variable(key, value)