correct imports

pull/6999/head
PHST 2018-05-23 16:13:50 +02:00
parent 03422a9df5
commit b9217d6be0
2 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@ from __future__ import print_function, division, absolute_import
import re import re
import sys import sys
from os import getcwd from os import getcwd
from os.path import basename from os.path import (basename, abspath)
from . import Notifier from . import Notifier
from ..settings import (PRINT_COMPILER_OUTPUT_AS_LINK, from ..settings import (PRINT_COMPILER_OUTPUT_AS_LINK,

View File

@ -18,7 +18,7 @@ from __future__ import print_function, division, absolute_import
import re import re
import sys import sys
from os import stat, walk, getcwd, sep, remove, path from os import stat, walk, getcwd, sep, remove
from copy import copy from copy import copy
from time import time, sleep from time import time, sleep
from shutil import copyfile from shutil import copyfile
@ -987,7 +987,7 @@ class mbedToolchain:
# Check dependencies # Check dependencies
_, ext = splitext(source) _, ext = splitext(source)
ext = ext.lower() ext = ext.lower()
source = abspath(source) if PRINT_COMPILER_OUTPUT_AS_LINK else source source = abspath(source) if PRINT_COMPILER_OUTPUT_AS_LINK else source
if ext == '.c' or ext == '.cpp': if ext == '.c' or ext == '.cpp':