mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 07:03:55 +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 = [] |     ret = [] | ||||||
|     for include in config.get(CONF_INCLUDES, []): |     for include in config.get(CONF_INCLUDES, []): | ||||||
|         path = CORE.relative_path(include) |         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)) |         ret.append(u'#include "{}"'.format(res)) | ||||||
|     return ret |     return ret | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user