From 3ed90fbd9ce5a807b3745c09fc57f0151eca87c4 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Wed, 24 Jul 2024 10:19:41 -0300 Subject: Fix: use absolute path only in the status bar --- packages/finder/init.py | 2 +- packages/finder/main.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'packages') diff --git a/packages/finder/init.py b/packages/finder/init.py index a0764ec..e0338da 100644 --- a/packages/finder/init.py +++ b/packages/finder/init.py @@ -62,7 +62,7 @@ class FinderInit(): self.config = {} # Command line argument handling - self.path = os.path.abspath(args.path) + self.path = args.path def initialize(self): """ diff --git a/packages/finder/main.py b/packages/finder/main.py index 87d1c69..ae75571 100644 --- a/packages/finder/main.py +++ b/packages/finder/main.py @@ -19,6 +19,8 @@ # along with this program. If not, see . # Dependencies +import os + try: import asyncio except ImportError: @@ -99,7 +101,7 @@ class FinderMain(): def get_statusbar_right(self): #return "[Tab] change focus [Enter] Select" - return f"Path: {self.path}" + return f"Path: {os.path.abspath(self.path)}" def ui(self): # States -- cgit v1.2.3