From af3c46208e543bf2619ba9fc432493c1f40c0777 Mon Sep 17 00:00:00 2001 From: Jylpah Date: Mon, 5 Nov 2018 18:15:51 +0200 Subject: [PATCH] Fixed weird error on (Windows) --- analyzeReplays.py | 4 ++-- wotbreplay_uploader.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/analyzeReplays.py b/analyzeReplays.py index c0ea76f..b0ec21b 100644 --- a/analyzeReplays.py +++ b/analyzeReplays.py @@ -455,8 +455,8 @@ async def mkReplayQ(queue : asyncio.Queue, files : list): await queue.put(await mkReaderQitem(line)) else: for fn in files: - if fn.endswith(os.sep): - fn = fn[:-1] + if fn.endswith('"'): + fn = fn[:-1] if os.path.isfile(fn) and (p_replayfile.match(fn) != None): await queue.put(await mkReaderQitem(fn)) elif os.path.isdir(fn): diff --git a/wotbreplay_uploader.py b/wotbreplay_uploader.py index 02a064d..ea5ec55 100644 --- a/wotbreplay_uploader.py +++ b/wotbreplay_uploader.py @@ -105,7 +105,7 @@ async def mkReplayQ(queue : asyncio.Queue, files : list, title : str): await queue.put(await mkQueueItem(line, title)) else: for fn in files: - if fn.endswith(os.sep): + if fn.endswith('"'): fn = fn[:-1] if os.path.isfile(fn) and (p_replayfile.match(fn) != None): await queue.put(await mkQueueItem(fn, title))