main: Provide additional template variables about each source path.
This commit is contained in:
		
							parent
							
								
									40552d665a
								
							
						
					
					
						commit
						07d22418d4
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -36,8 +36,11 @@ class FileImporter:
 | 
			
		|||
            raise errors.UserInputFileError("no importers available", in_file.name)
 | 
			
		||||
        source_vars = {
 | 
			
		||||
            'source_abspath': in_path.absolute().as_posix(),
 | 
			
		||||
            'source_absdir': in_path.absolute().parent.as_posix(),
 | 
			
		||||
            'source_dir': in_path.parent,
 | 
			
		||||
            'source_name': in_path.name,
 | 
			
		||||
            'source_path': in_path.as_posix(),
 | 
			
		||||
            'source_stem': in_path.stem,
 | 
			
		||||
        }
 | 
			
		||||
        with contextlib.ExitStack() as exit_stack:
 | 
			
		||||
            output_path = self.config.get_output_path()
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue