You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2021/08/07 21:48:30 UTC

[whimsy] branch whimsy-nogem updated: Rakefile also needs relative path

This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch whimsy-nogem
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/whimsy-nogem by this push:
     new 741e2b1  Rakefile also needs relative path
741e2b1 is described below

commit 741e2b11a8bb0b5dc14e2e4eb200b28bc18da0f9
Author: Sebb <se...@apache.org>
AuthorDate: Sat Aug 7 22:48:05 2021 +0100

    Rakefile also needs relative path
---
 www/board/agenda/Rakefile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/www/board/agenda/Rakefile b/www/board/agenda/Rakefile
index a662222..079d0fd 100644
--- a/www/board/agenda/Rakefile
+++ b/www/board/agenda/Rakefile
@@ -1,4 +1,6 @@
-$LOAD_PATH.unshift '/srv/whimsy/lib'
+# Need relative path for CI such as Travis
+lib = File.expand_path('../' * 3 + 'lib', __dir__)
+$LOAD_PATH.unshift lib unless $LOAD_PATH.include? lib
 
 # Remove world writable directories that Travis may insert into the PATH,
 # as these cause security errors during testing