-
Stefy Lanza (nextime / spora ) authored
cli.py: - Replace hardcoded paths with sysconfig.get_path('data', scheme) covering all pip install modes (venv, posix_user, posix_prefix, posix_home, system) - Fall back to legacy hardcoded paths for extra safety - Last-resort bootstrap: copy bundled aisbf/aisbf.sh to ~/.local/share/aisbf/ when data_files were not installed by pip (known pip/wheel limitation) - Improved error message with all checked paths and reinstall instructions aisbf.sh: - Replace hardcoded /usr/share/aisbf check (wrong: setup.py installs to /usr/local/share/aisbf) with a Python sysconfig lookup that checks the actual pip data prefix across all known schemes - Derive LOG_DIR from SHARE_DIR instead of duplicating the detection logic Packaging: - Add aisbf/aisbf.sh as package_data so it is always present in the installed aisbf package regardless of data_files extraction success - Add recursive-include aisbf *.sh to MANIFEST.in for sdist - Add aisbf/aisbf.sh to setup.py data_files share/aisbf/aisbf listingb52af5a4