From 954132cf1aabc768ecb759f214233844ca466816 Mon Sep 17 00:00:00 2001 From: Damien De Paoli Date: Fri, 22 Jan 2021 22:33:44 +1100 Subject: [PATCH] BUG-2 (FixPath) solved, because we no longer fix paths :) --- BUGs | 1 - pa_job_manager.py | 7 ------- 2 files changed, 8 deletions(-) diff --git a/BUGs b/BUGs index 95f8867..b017899 100644 --- a/BUGs +++ b/BUGs @@ -1,5 +1,4 @@ ### Next: 13 - BUG-2: Fix the function FixPath so its not just C:, use isPosixPath instead... BUG-4: Duration is borked and comes out as -1 day under jobs (windows created jobs ONLY) BUG-6: add a new file (e.g. touch an image in the import dir), and keep_dir[] has missing key BUG-7: thumbnail orientation issues (see latest image from my phone - of laptop) diff --git a/pa_job_manager.py b/pa_job_manager.py index 4ce06a6..e5f7e06 100644 --- a/pa_job_manager.py +++ b/pa_job_manager.py @@ -613,13 +613,6 @@ def isVideo(file): except Exception as e: return False -# Converts linux paths into windows paths -# HACK: assumes c:, might be best to just look for [a-z]: ? -def FixPath(p): - if p.startswith('c:'): - p = p.replace('/', '\\') - return p - # Returns an md5 hash of the fnames' contents def md5(job, fname): hash_md5 = hashlib.md5()