mirror of
https://github.com/esphome/esphome.git
synced 2025-03-15 07:08:20 +00:00
Includes should be relative to the src directory, not main.cpp file (#390)
This commit is contained in:
parent
0f803044da
commit
20ef3b5eef
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user