diff --git a/build-waf.sh b/build-waf.sh index 39996bc..3214f09 100755 --- a/build-waf.sh +++ b/build-waf.sh @@ -1,7 +1,7 @@ #!/bin/bash TOOLS="msvs,clang_compilation_database,color_msvc" -PRELUDE=$'\tsys.path.insert(0, \'scripts/waifulib\')' +PRELUDE=$'\tsys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), \'scripts\', \'waifulib\'))' # a set of relatively stable tools # TODO: make it possible to override this list