Allow putting packages in subdirectories.
This commit is contained in:
		
							parent
							
								
									1f5cddb55f
								
							
						
					
					
						commit
						0bf7d35168
					
				
					 1 changed files with 9 additions and 2 deletions
				
			
		|  | @ -1,5 +1,6 @@ | |||
| import os | ||||
| import copy | ||||
| from pathlib import Path | ||||
| from . import utils | ||||
| 
 | ||||
| 
 | ||||
|  | @ -160,12 +161,18 @@ def cincludes(manifests: dict) -> str: | |||
| 
 | ||||
|     for key in manifests: | ||||
|         item = manifests[key] | ||||
|         if item["enabled"] and "root-include" in item: | ||||
|         if item["enabled"]: | ||||
|             if "root-include" in item: | ||||
|                 include_paths.append(item["dir"]) | ||||
|             else: | ||||
|                 include_paths.append(str(Path(item["dir"]).parent)) | ||||
| 
 | ||||
|     if len(include_paths) == 0: | ||||
|         return "" | ||||
| 
 | ||||
|     # remove duplicates | ||||
|     include_paths = utils.stripDups(include_paths) | ||||
| 
 | ||||
|     return " -I" + " -I".join(include_paths) | ||||
| 
 | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue