diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2024-07-24 10:19:41 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2024-07-24 10:19:41 -0300 |
commit | 3ed90fbd9ce5a807b3745c09fc57f0151eca87c4 (patch) | |
tree | 743ee332e1ea81e184fc631a5e2aab35f4428073 | |
parent | 0555b2b349c42bd83e4dd5af2c0ca241f212266a (diff) | |
download | finder-3ed90fbd9ce5a807b3745c09fc57f0151eca87c4.tar.gz finder-3ed90fbd9ce5a807b3745c09fc57f0151eca87c4.tar.bz2 |
Fix: use absolute path only in the status bar
-rw-r--r-- | packages/finder/init.py | 2 | ||||
-rw-r--r-- | packages/finder/main.py | 4 |
2 files changed, 4 insertions, 2 deletions
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 <http://www.gnu.org/licenses/>. # 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 |