From 5d31ac23cd4d09a19aede0cfe422b3258992c3c6 Mon Sep 17 00:00:00 2001 From: James Turk Date: Sun, 28 Jul 2024 03:14:50 -0400 Subject: [PATCH] don't replace . --- src/modo/app.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/modo/app.py b/src/modo/app.py index e50a42f..207cbdc 100644 --- a/src/modo/app.py +++ b/src/modo/app.py @@ -42,7 +42,10 @@ def get_files(dirname): def short_path(f): - return str(f).replace(short_path.base_dir, "") + if "/" in short_path.base_dir: + return str(f).replace(short_path.base_dir, "") + else: + return str(f) short_path.base_dir = ""