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 = ""