summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--wscript6
1 files changed, 3 insertions, 3 deletions
diff --git a/wscript b/wscript
index 259ba4e..dd726e9 100644
--- a/wscript
+++ b/wscript
@@ -149,9 +149,9 @@ def configure(conf):
# Set up environment for building/using as a subproject
autowaf.set_lib_env(conf, 'sord', SORD_VERSION)
- conf.env.SORD_VALIDATE = [
- os.path.abspath(str(conf.path.get_bld().make_node('sord_validate')))
- ]
+ sord_validate_node = conf.path.get_bld().make_node('sord_validate')
+ if sord_validate_node is not None:
+ conf.env.SORD_VALIDATE = [sord_validate_node.abspath()]
conf.write_config_header('sord_config.h', remove=False)