From ecae350c46aa10a3adf2ccdd6c38865389ea7795 Mon Sep 17 00:00:00 2001 From: Marko Oldenburg Date: Tue, 1 Feb 2022 17:06:07 +0100 Subject: [PATCH] Subject line (try to keep under 50 characters) Multi-line description of commit, feel free to be detailed. [Ticket: X] --- test_drs110m.pl | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/test_drs110m.pl b/test_drs110m.pl index 163df69..c755586 100755 --- a/test_drs110m.pl +++ b/test_drs110m.pl @@ -6,14 +6,13 @@ use strict; use warnings; use Path::Tiny; -use Cwd qw(getcwd); use IO::Socket::INET; -my $workdir = getcwd; +BEGIN { + push @INC, "./lib"; +} -push @INC, "$workdir/lib"; - -require iec1107; +use iec1107; my $port = Device::SerialPort->new( "/dev/serial/by-id/usb-FTDI_FT232R_USB_UART_AK072UA9-if00-port0")