tools: includes from relative or project paths
[sheet.git] / tools / mktermcol-xcolor
index c705093924dc96748f18a56683d6863e285a390a..c59b7312150ad163228069163583243044450790 100755 (executable)
@@ -1,7 +1,7 @@
 #!/usr/bin/env perl
 use 5.014;
-
-BEGIN { push @INC, '.'; }
+use warnings;
+use lib $0 =~ s{[^/]+$}{..}r; # project root
 use Shiar_Sheet::Colour 1.05;
 
 say "# automatically generated by $0";