make __type available for type gencode
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
		
					parent
					
						
							
								76f3792885
							
						
					
				
			
			
				commit
				
					
						4956c015c1
					
				
			
		
					 2 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
					@ -514,6 +514,7 @@ class Cdist:
 | 
				
			||||||
      env["__object"]      = self.object_dir(cdist_object)
 | 
					      env["__object"]      = self.object_dir(cdist_object)
 | 
				
			||||||
      env["__object_id"]   = self.get_object_id_from_object(cdist_object)
 | 
					      env["__object_id"]   = self.get_object_id_from_object(cdist_object)
 | 
				
			||||||
      env["__object_fq"]   = cdist_object
 | 
					      env["__object_fq"]   = cdist_object
 | 
				
			||||||
 | 
					      env["__type"]        = self.type_dir(get_type_from_object(cdist_object))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      if mode == "gencode":
 | 
					      if mode == "gencode":
 | 
				
			||||||
         paths = self.type_gencode_paths(self.get_type_from_object(cdist_object))
 | 
					         paths = self.type_gencode_paths(self.get_type_from_object(cdist_object))
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -182,7 +182,7 @@ __target_user::
 | 
				
			||||||
   Currently static in core.
 | 
					   Currently static in core.
 | 
				
			||||||
__type::
 | 
					__type::
 | 
				
			||||||
   Path to the current type.
 | 
					   Path to the current type.
 | 
				
			||||||
   Available for: type manifest
 | 
					   Available for: type manifest, type gencode
 | 
				
			||||||
__type_explorer::
 | 
					__type_explorer::
 | 
				
			||||||
   Directory that contains the type explorers.
 | 
					   Directory that contains the type explorers.
 | 
				
			||||||
   Available for: type explorer
 | 
					   Available for: type explorer
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue