Commit f110515b authored by Fred Drake's avatar Fred Drake

Somewhat more direct way of locating the file, using __FILE__.

Leave find_my_file() around for now, even though we're not using it at the
moment.
parent fc1a7e4d
...@@ -34,11 +34,16 @@ sub find_my_file{ ...@@ -34,11 +34,16 @@ sub find_my_file{
$mydir; $mydir;
} }
# A little painful, but lets us clean up the top level directory a little, # A little painful, but lets us clean up the top level directory a little,
# and not be tied to the current directory (as far as I can tell). # and not be tied to the current directory (as far as I can tell).
# #
$mydir = &find_my_file("l2hinit.perl"); use Cwd;
#print "\nmy dir = $mydir\n"; use File::Basename;
($myname, $mydir, $myext) = fileparse(__FILE__, '\..*');
chop $mydir; # remove trailing '/'
$mydir = getcwd() . "$dd$mydir"
unless $mydir =~ s|^/|/|;
$LATEX2HTMLSTYLES = "$mydir$envkey$LATEX2HTMLSTYLES"; $LATEX2HTMLSTYLES = "$mydir$envkey$LATEX2HTMLSTYLES";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment