1
0
mirror of https://github.com/mbirth/tcl_ota_check.git synced 2024-09-19 22:33:25 +01:00

Use normpath() for readability.

This commit is contained in:
Markus Birth 2017-11-02 02:44:46 +01:00
parent 5518afd17f
commit bd6b1e9b0b
Signed by: mbirth
GPG Key ID: A9928D7A098C3A9A
2 changed files with 2 additions and 2 deletions

View File

@ -138,7 +138,7 @@ class FotaCheck:
self.master_server_downvote()
def write_dump(self, data):
outfile = os.path.join("logs", "{}.xml".format(self.get_salt()))
outfile = os.path.normpath("logs/{}.xml".format(self.get_salt()))
if not os.path.exists(os.path.dirname(outfile)):
try:
os.makedirs(os.path.dirname(outfile))

View File

@ -5,4 +5,4 @@
import os
LOGS_GLOB = os.path.join("logs", "*.xml")
LOGS_GLOB = os.path.normpath("logs/*.xml")