1 package NonameTV
::Path
;
5 NonameTV::Path - Locate different parts of the NonameTV source.
11 print NonameTV::Path::Root();
15 Locates the full path to the directory where NonameTV is located.
16 This is done based on the location of the NonameTV::Path module.
25 my $pathfile = abs_path
( $INC{"NonameTV/Path.pm"} );
26 ( $root ) = ( $pathfile =~ m
%(.*)/lib/NonameTV
/Path
.pm
% );
27 if( not -f
"$root/lib/NonameTV/Path.pm" ) {
28 print STDERR
"Failed to find NonameTV installation at $root.\n";
38 return "$root/templates";