Files
Python-With-Gtk-Template/user_config/bin/<change_me>
itdominator 080ba41cf1 Remove custom LSP manager plugins and add new language server clients
- Delete old lsp_manager plugin (custom websocket-based LSP client implementation)
- Delete java_lsp_client plugin
- Delete python_lsp_client plugin
- Remove unused LSP DTO files in src/libs/dto/code/lsp/
- Add new language_server_clients plugin directory
- Improve event_factory with register_events method
- Add PYTHONDONTWRITEBYTECODE to user config
- Update events init.py docstring
2026-03-15 20:45:58 -05:00

41 lines
916 B
Bash
Executable File

#!/bin/bash
# . CONFIG.sh
# set -o xtrace ## To debug scripts
# set -o errexit ## To exit on error
# set -o errunset ## To exit if a variable is referenced but not set
export PYTHONDONTWRITEBYTECODE=1
function main() {
call_path=`pwd`
path=""
# NOTE: Remove if you want to pass file(s) besides directories...
if [[ ! "${1::1}" == /* ]]; then
path="${call_path}/${1}"
else
path="${1}"
fi
if [ ! -d "${path}" ]; then
echo "<change_me>: Path given not a directory..."
exit 1
fi
# End NOTE: Remove if you want to pass file(s) besides directories...
# Collect abs paths and stuff in 'files' array
files=()
for f in "$@"; do
target=$(readlink -f "${f}")
i="${#files[@]}"
size=$(($i + 1))
files[$size]="${target}"
done
cd "/opt/"
python /opt/<change_me>.zip "$@"
}
main "$@";