From 06630594f6a5508f9b94eb940a389abc3bd462f2 Mon Sep 17 00:00:00 2001 From: Zachary Lentz Date: Wed, 10 Apr 2024 14:05:28 -0700 Subject: [PATCH 1/3] MAINT: rename get_info -> get_info.py and remove executable bit --- scripts/{get_info => get_info.py} | 1 - 1 file changed, 1 deletion(-) rename scripts/{get_info => get_info.py} (99%) mode change 100755 => 100644 diff --git a/scripts/get_info b/scripts/get_info.py old mode 100755 new mode 100644 similarity index 99% rename from scripts/get_info rename to scripts/get_info.py index 4610c1f0..6aeab369 --- a/scripts/get_info +++ b/scripts/get_info.py @@ -1,4 +1,3 @@ -#!/reg/g/pcds/pyps/conda/py36/envs/pcds-3.4.0/bin/python import argparse import socket import os From a5b544072cec848ad5aa11be8ca41c5aa7057e10 Mon Sep 17 00:00:00 2001 From: Zachary Lentz Date: Wed, 10 Apr 2024 14:05:59 -0700 Subject: [PATCH 2/3] MAINT: add wrapper bash script for get_info --- scripts/get_info | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 scripts/get_info diff --git a/scripts/get_info b/scripts/get_info new file mode 100644 index 00000000..ac7fa0e2 --- /dev/null +++ b/scripts/get_info @@ -0,0 +1,17 @@ +#!/bin/bash +HERE="$(realpath "$(dirname "${BASH_SOURCE[0]}")")" +PYTHON_OPTIONS=( + /cds/group/pcds/pyps/conda/py36/envs/pcds-3.4.0/bin/python + /sdf/group/lcls/ds/ana/sw/conda1/inst/envs/ana-4.0.60-py3/bin/python +) + +for PYTHON in "${PYTHON_OPTIONS[@]}" +do + if [ -x "${PYTHON}" ]; then + "${PYTHON}" "${HERE}/get_info.py" "${@}" + exit $? + fi +done + +echo "No known python executable is available! Tried all of" "${PYTHON_OPTIONS[@]}" +exit 1 From a6558b8b38d6422e5e98b49723a1a18cdf8e9c26 Mon Sep 17 00:00:00 2001 From: Zachary Lentz Date: Wed, 10 Apr 2024 14:07:20 -0700 Subject: [PATCH 3/3] MAINT: get_info needs exec perms --- scripts/get_info | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 scripts/get_info diff --git a/scripts/get_info b/scripts/get_info old mode 100644 new mode 100755