mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-02 03:37:55 +00:00
Fix perl use of 'use lib'
The 'use lib' logic happens in the pre-compile stage, so one cannot use normal 'if' logic to use a particular INC. Instead, just make sure that best dir is added to 'use lib' last since it prepends to INC.
This commit is contained in:
@@ -17,6 +17,8 @@ use LWP::UserAgent;
|
||||
use Data::Dumper;
|
||||
use JSON;
|
||||
use lib '/home/lanforge/scripts';
|
||||
use lib "../";
|
||||
use lib "./";
|
||||
use LANforge::JsonUtils qw(err logg xpand json_request);
|
||||
|
||||
|
||||
@@ -57,4 +59,4 @@ for my $rh_e (@{$rh->{interfaces}}) {
|
||||
sleep 0.1;
|
||||
}
|
||||
|
||||
#
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user