mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 22:53:59 +00:00 
			
		
		
		
	Includes should be relative to the src directory, not main.cpp file (#390)
This commit is contained in:
		
				
					committed by
					
						 Otto Winter
						Otto Winter
					
				
			
			
				
	
			
			
			
						parent
						
							bd23584073
						
					
				
				
					commit
					5fcda34c45
				
			| @@ -238,6 +238,6 @@ def includes(config): | ||||
|     ret = [] | ||||
|     for include in config.get(CONF_INCLUDES, []): | ||||
|         path = CORE.relative_path(include) | ||||
|         res = os.path.relpath(path, CORE.relative_build_path('src', 'main.cpp')) | ||||
|         res = os.path.relpath(path, CORE.relative_build_path('src')) | ||||
|         ret.append(u'#include "{}"'.format(res)) | ||||
|     return ret | ||||
|   | ||||
		Reference in New Issue
	
	Block a user