mirror of
https://github.com/mbirth/tcl_ota_check.git
synced 2024-11-09 22:06:47 +00:00
cross platform paths
This commit is contained in:
parent
a39cc4d050
commit
5518afd17f
@ -138,7 +138,7 @@ class FotaCheck:
|
||||
self.master_server_downvote()
|
||||
|
||||
def write_dump(self, data):
|
||||
outfile = "logs/{}.xml".format(self.get_salt())
|
||||
outfile = os.path.join("logs", "{}.xml".format(self.get_salt()))
|
||||
if not os.path.exists(os.path.dirname(outfile)):
|
||||
try:
|
||||
os.makedirs(os.path.dirname(outfile))
|
||||
|
@ -3,4 +3,6 @@
|
||||
|
||||
# pylint: disable=C0111,C0326,C0103
|
||||
|
||||
LOGS_GLOB = "logs/*.xml"
|
||||
import os
|
||||
|
||||
LOGS_GLOB = os.path.join("logs", "*.xml")
|
||||
|
Loading…
Reference in New Issue
Block a user