mirror of
https://github.com/mbirth/tcl_ota_check.git
synced 2024-11-10 06:16:46 +00:00
Use normpath() for readability.
This commit is contained in:
parent
5518afd17f
commit
bd6b1e9b0b
@ -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))
|
||||
|
@ -5,4 +5,4 @@
|
||||
|
||||
import os
|
||||
|
||||
LOGS_GLOB = os.path.join("logs", "*.xml")
|
||||
LOGS_GLOB = os.path.normpath("logs/*.xml")
|
||||
|
Loading…
Reference in New Issue
Block a user