remove debug file on start
This commit is contained in:
parent
e3ce8c31f8
commit
f7ce113557
@ -21,6 +21,11 @@ class debug():
|
|||||||
self._fileOpened = False
|
self._fileOpened = False
|
||||||
def initialize(self, environment):
|
def initialize(self, environment):
|
||||||
self.env = environment
|
self.env = environment
|
||||||
|
if os.path.exists(self._fileName):
|
||||||
|
try:
|
||||||
|
os.remove(self._fileName)
|
||||||
|
except OSError, e:
|
||||||
|
print ("Error: %s - %s." % (e.filename,e.strerror))
|
||||||
def shutdown(self):
|
def shutdown(self):
|
||||||
self.closeDebugFile()
|
self.closeDebugFile()
|
||||||
def __del__(self):
|
def __del__(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user