Fix issue with removing temporary file while converting *.ino to *.cpp
This commit is contained in:
@@ -116,8 +116,10 @@ def ConvertInoToCpp(env):
|
||||
def delete_tmpcpp_file(file_):
|
||||
try:
|
||||
remove(file_)
|
||||
except WindowsError: # pylint: disable=undefined-variable
|
||||
pass
|
||||
except: # pylint: disable=bare-except
|
||||
if isfile(file_):
|
||||
print ("Warning: Could not remove temporary file '%s'. "
|
||||
"Please remove it manually." % file_)
|
||||
|
||||
ino_nodes = (env.Glob(join("$PROJECTSRC_DIR", "*.ino")) +
|
||||
env.Glob(join("$PROJECTSRC_DIR", "*.pde")))
|
||||
|
||||
Reference in New Issue
Block a user