mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	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.
This commit is contained in:
		
							parent
							
								
									bc8ad5bdeb
								
							
						
					
					
						commit
						c9f2c14d49
					
				
					 1 changed files with 7 additions and 2 deletions
				
			
		|  | @ -34,11 +34,16 @@ sub find_my_file{ | |||
|     $mydir; | ||||
| } | ||||
| 
 | ||||
| 
 | ||||
| # 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). | ||||
| # | ||||
| $mydir = &find_my_file("l2hinit.perl"); | ||||
| #print "\nmy dir = $mydir\n"; | ||||
| use Cwd; | ||||
| use File::Basename; | ||||
| ($myname, $mydir, $myext) = fileparse(__FILE__, '\..*'); | ||||
| chop $mydir;			# remove trailing '/' | ||||
| $mydir = getcwd() . "$dd$mydir" | ||||
|   unless $mydir =~ s|^/|/|; | ||||
| $LATEX2HTMLSTYLES = "$mydir$envkey$LATEX2HTMLSTYLES"; | ||||
| 
 | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Fred Drake
						Fred Drake