forked from platformio/platformio-core
Ignore warning when can't delete temporary file
This commit is contained in:
@ -81,7 +81,6 @@ class InoToCPPConverter(object):
|
|||||||
tmp_path = mkstemp()[1]
|
tmp_path = mkstemp()[1]
|
||||||
with open(tmp_path, "w") as fp:
|
with open(tmp_path, "w") as fp:
|
||||||
fp.write(contents)
|
fp.write(contents)
|
||||||
fp.close()
|
|
||||||
self.env.Execute(
|
self.env.Execute(
|
||||||
self.env.VerboseAction(
|
self.env.VerboseAction(
|
||||||
'$CXX -o "{0}" -x c++ -fpreprocessed -dD -E "{1}"'.format(
|
'$CXX -o "{0}" -x c++ -fpreprocessed -dD -E "{1}"'.format(
|
||||||
@ -185,9 +184,7 @@ def _delete_file(path):
|
|||||||
if isfile(path):
|
if isfile(path):
|
||||||
remove(path)
|
remove(path)
|
||||||
except: # pylint: disable=bare-except
|
except: # pylint: disable=bare-except
|
||||||
if path and isfile(path):
|
pass
|
||||||
sys.stderr.write("Warning: Could not remove temporary file '%s'. "
|
|
||||||
"Please remove it manually.\n" % path)
|
|
||||||
|
|
||||||
|
|
||||||
def DumpIDEData(env):
|
def DumpIDEData(env):
|
||||||
|
Reference in New Issue
Block a user