Files
aleesa-telegram/bin/redis_msg_gen.pl
eleksir 7cac72d5b9 Fixes for cli
Use correct path for working dir
Fix path for Conf.om
Use pubsub object instead of redis connection
2021-12-11 15:55:14 +03:00

32 lines
571 B
Perl

#!/usr/bin/perl
use 5.018;
use strict;
use warnings;
use utf8;
use open qw (:std :utf8);
use English qw ( -no_match_vars );
use version; our $VERSION = qw (1.0);
my $workdir;
# before we run, change working dir
BEGIN {
use Cwd qw (chdir abs_path);
my @CWD = split /\//xms, abs_path ($PROGRAM_NAME);
if ($#CWD > 1) { $#CWD = $#CWD - 2; }
$workdir = join '/', @CWD;
chdir $workdir;
}
use lib ("$workdir/lib", "$workdir/vendor_perl", "$workdir/vendor_perl/lib/perl5");
use Cli qw (RunCli);
RunCli ();
exit 0;
__END__
# vim: set ft=perl noet ai ts=4 sw=4 sts=4: