From 71c5ec34eb42b6ac75c4e7d3d2ea04dc214057fc Mon Sep 17 00:00:00 2001 From: Markus Zolliker Date: Wed, 9 Apr 2025 11:42:01 +0200 Subject: [PATCH] make listboxes work when bin/listboxes is a symlink --- listboxes | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/listboxes b/listboxes index 0e45486..c2b2ce0 100755 --- a/listboxes +++ b/listboxes @@ -4,9 +4,7 @@ from pathlib import Path from configparser import ConfigParser from socket import gethostbyname, create_connection -# cfgdir = Path('~/boxtools/cfg').expanduser() -cfgdir = Path(__file__).parent / 'cfg' -print(cfgdir, cfgdir.is_dir()) +cfgdir = Path(__file__).resolve().parent / 'cfg' def check_ssh(host, port=22):