Francois Gouget : testbot/scripts: Tweak CheckWineTestBot. pl to autodetect WineTestBot's lib directory.
Alexandre Julliard
julliard at winehq.org
Thu Oct 4 13:29:38 CDT 2012
Module: tools
Branch: master
Commit: a3d18e577b233c443a3ddd2bc2c2f85ab3771be6
URL: http://source.winehq.org/git/tools.git/?a=commit;h=a3d18e577b233c443a3ddd2bc2c2f85ab3771be6
Author: Francois Gouget <fgouget at codeweavers.com>
Date: Thu Oct 4 14:38:08 2012 +0200
testbot/scripts: Tweak CheckWineTestBot.pl to autodetect WineTestBot's lib directory.
---
testbot/scripts/CheckWineTestBot.pl | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/testbot/scripts/CheckWineTestBot.pl b/testbot/scripts/CheckWineTestBot.pl
index 529fd94..2793a17 100755
--- a/testbot/scripts/CheckWineTestBot.pl
+++ b/testbot/scripts/CheckWineTestBot.pl
@@ -19,7 +19,14 @@
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
use strict;
-use lib "/usr/lib/winetestbot/lib";
+
+my $Dir;
+sub BEGIN
+{
+ $0 =~ m=^(.*)/[^/]*$=;
+ $Dir = $1;
+}
+use lib "$Dir/../lib";
use WineTestBot::Config;
use WineTestBot::Engine::Notify;
More information about the wine-cvs
mailing list