Skip to content
Snippets Groups Projects
Commit 44c48635 authored by Tomáš Plesník's avatar Tomáš Plesník
Browse files

pridano nacitani adresare lib a modulu WardenClient.pm pomoci promenne __FILE__

parent 7a0555f3
No related branches found
No related tags found
No related merge requests found
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
use strict; use strict;
use warnings; use warnings;
use File::Basename;
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# Warden 2.2 Client, Receiver, Example # Warden 2.2 Client, Receiver, Example
# #
...@@ -18,11 +20,10 @@ use warnings; ...@@ -18,11 +20,10 @@ use warnings;
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# This code should developer add into his/her application. # This code should developer add into his/her application.
# Path to warden-client directory # Load Warden client library and use main module
my $warden_path = '/opt/warden-client/'; my $bin = File::Basename::dirname(__FILE__);
use lib "$bin/../lib";
# Inclusion of warden-client receiving functionality use WardenClient;
require $warden_path . '/lib/WardenClient.pm';
# Definition of requested event type. This attributes is also set on server # Definition of requested event type. This attributes is also set on server
# and must not change. # and must not change.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment