updated run from RHEL8
This commit is contained in:
1 parent
4c0f2b6301
commit
bbc09780b9
1 file changed
+9
-22
@@ -1,24 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
# The following block allows to use the `run` script like this
|
||||
# ```
|
||||
# ln -s run a_script.sh
|
||||
# ./a_script.sh
|
||||
# ```
|
||||
# which then runs `./run a_script.py`
|
||||
|
||||
fn=$(basename $0)
|
||||
if [ "$fn" != "run" ]; then
|
||||
dn=$(dirname "$0")
|
||||
sn=$(basename "$0" .sh)
|
||||
dn="${dn}/run"
|
||||
sn="${sn}.py"
|
||||
echo "Running: $dn $sn"
|
||||
$dn $sn
|
||||
exit
|
||||
fi
|
||||
|
||||
###
|
||||
|
||||
function help() {
|
||||
echo "Load conda env and run a script"
|
||||
@@ -42,8 +23,14 @@ if [[ -z $@ ]]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
source /sf/alvra/applications/miniconda3/etc/profile.d/conda.sh
|
||||
conda activate adaq
|
||||
source /sf/eido/source-python
|
||||
#!/usr/bin/env python
|
||||
|
||||
#source /sf/alvra/applications/miniconda3/etc/profile.d/conda.sh
|
||||
#conda activate adaq
|
||||
#source /sf/eido/applications/miniconda3/etc/profile.d/conda.sh
|
||||
#conda activate slic-3.8-update6
|
||||
source /sf/daq/source-conda
|
||||
conda activate slic
|
||||
source /sf/daq/source-python
|
||||
$@
|
||||
|
||||
Reference in new issue
Block a user