Commit dade5d69 authored by FERNANDEZ Iban's avatar FERNANDEZ Iban

Correction du bug provanquant l'écrasement des données du fichier de position...

Correction du bug provanquant l'écrasement des données du fichier de position courant lors du redémarage de programme python
parent 82708a45
Pipeline #99704 passed with stages
in 3 minutes and 26 seconds
......@@ -32,10 +32,14 @@ class positions_files_handler:
# the last line writen in the file
self.last_line_writen = ""
# open the log file and adds the name of the column at the begining
f = open(self.file_name, "w")
f.write("DATE TIME \tPosition\n")
f.close()
# check if a log file for the same date exist
if(os.path.isfile(self.file_name) == False ):
# open the log file and adds the name of the column at the begining
f = open(self.file_name, "w")
f.write("DATE TIME \tPosition\n")
f.close()
#---FUNCTIONS ---
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment