Closed schperplata closed 5 years ago
# from utilities.py # def getGccIncludePath() fileName = "stdint.h" filePath = findFileInFolderTree(searchPath, fileName) # returns None folderPath = os.path.dirname(filePath) # fails
folderPath = os.path.dirname(filePath) will fail if filePath is None. Should be printAndQuit()
folderPath = os.path.dirname(filePath)
filePath
printAndQuit()
Originally posted by @schperplata in https://github.com/damogranlabs/VS-Code-STM32-IDE/issues/15#issuecomment-473722150
Fixed, check is now performed before os.path.dirname().
os.path.dirname()
folderPath = os.path.dirname(filePath)
will fail iffilePath
is None. Should beprintAndQuit()
Originally posted by @schperplata in https://github.com/damogranlabs/VS-Code-STM32-IDE/issues/15#issuecomment-473722150