1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
From: Vincent Bernat <bernat@debian.org>
Date: Sat, 25 Jan 2025 07:21:29 +0100
Subject: search data in the appropriate directory This is a
Debian-specific modification. None of the other directories would
work. The first one is not specific to taskjuggler. The other ones
are specific on the Ruby version and TaskJuggler version.
---
lib/taskjuggler/AppConfig.rb | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/lib/taskjuggler/AppConfig.rb b/lib/taskjuggler/AppConfig.rb
index a320339..732be76 100644
--- a/lib/taskjuggler/AppConfig.rb
+++ b/lib/taskjuggler/AppConfig.rb
@@ -125,9 +125,8 @@ def AppConfig.dataSearchDirs(baseDir = 'data')
end
end
- # Find the data dir relative to the source of this file. This should
- # always work.
- dirs << File.join(File.dirname(__FILE__), '..', '..', baseDir)
+ # For Debian package:
+ dirs << File.join('/usr/share/taskjuggler/', baseDir)
# This hopefully works for all setups. Otherwise we have to add more
# alternative pathes.
|