mirror of
https://github.com/philippemerle/KubeDiagrams.git
synced 2026-08-16 14:16:14 +00:00
`os.path.dirname(__file__)` returns the symlink's directory when the script is invoked through a symlink (Nix, ln -s into ~/.local/bin), so kube-diagrams.yaml and icons/ are not found. Use `os.path.realpath(__file__)` to resolve to the real script location. No behavior change for copied installs (`pip/setup.py` scripts).