diff --git a/tools/notifier/term.py b/tools/notifier/term.py index 5a8ebbe722..0f9b1375c0 100644 --- a/tools/notifier/term.py +++ b/tools/notifier/term.py @@ -18,7 +18,7 @@ from __future__ import print_function, division, absolute_import import re import sys from os import getcwd -from os.path import basename +from os.path import (basename, abspath) from . import Notifier from ..settings import (PRINT_COMPILER_OUTPUT_AS_LINK, diff --git a/tools/toolchains/__init__.py b/tools/toolchains/__init__.py index 06fd673502..f58c54d7e2 100644 --- a/tools/toolchains/__init__.py +++ b/tools/toolchains/__init__.py @@ -18,7 +18,7 @@ from __future__ import print_function, division, absolute_import import re import sys -from os import stat, walk, getcwd, sep, remove, path +from os import stat, walk, getcwd, sep, remove from copy import copy from time import time, sleep from shutil import copyfile @@ -987,7 +987,7 @@ class mbedToolchain: # Check dependencies _, ext = splitext(source) ext = ext.lower() - + source = abspath(source) if PRINT_COMPILER_OUTPUT_AS_LINK else source if ext == '.c' or ext == '.cpp':