aboutsummaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2024-07-24 10:19:41 -0300
committerSilvio Rhatto <rhatto@riseup.net>2024-07-24 10:19:41 -0300
commit3ed90fbd9ce5a807b3745c09fc57f0151eca87c4 (patch)
tree743ee332e1ea81e184fc631a5e2aab35f4428073 /packages
parent0555b2b349c42bd83e4dd5af2c0ca241f212266a (diff)
downloadfinder-3ed90fbd9ce5a807b3745c09fc57f0151eca87c4.tar.gz
finder-3ed90fbd9ce5a807b3745c09fc57f0151eca87c4.tar.bz2
Fix: use absolute path only in the status bar
Diffstat (limited to 'packages')
-rw-r--r--packages/finder/init.py2
-rw-r--r--packages/finder/main.py4
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