make listboxes work when bin/listboxes is a symlink

This commit is contained in:
2025-04-09 11:42:01 +02:00
parent ef3ee7775a
commit 71c5ec34eb

View File

@ -4,9 +4,7 @@ from pathlib import Path
from configparser import ConfigParser from configparser import ConfigParser
from socket import gethostbyname, create_connection from socket import gethostbyname, create_connection
# cfgdir = Path('~/boxtools/cfg').expanduser() cfgdir = Path(__file__).resolve().parent / 'cfg'
cfgdir = Path(__file__).parent / 'cfg'
print(cfgdir, cfgdir.is_dir())
def check_ssh(host, port=22): def check_ssh(host, port=22):