mirror of
https://github.com/esphome/esphome.git
synced 2024-11-22 15:08:10 +01:00
Includes should be relative to the src directory, not main.cpp file (#390)
This commit is contained in:
parent
bd23584073
commit
5fcda34c45
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue