diff --git a/tcllib.py b/tcllib.py index 63ee2b5..82437a8 100644 --- a/tcllib.py +++ b/tcllib.py @@ -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)) diff --git a/upload_logs.py b/upload_logs.py index 8093abb..110d44b 100644 --- a/upload_logs.py +++ b/upload_logs.py @@ -5,4 +5,4 @@ import os -LOGS_GLOB = os.path.join("logs", "*.xml") +LOGS_GLOB = os.path.normpath("logs/*.xml")