File tree Expand file tree Collapse file tree 3 files changed +17
-2
lines changed
Expand file tree Collapse file tree 3 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ __pycache__/
33.clang-format
44* .pyc
55* .pyo
6- bin /
6+ bin /test
77carm_results
88cache
99Bench /Bench
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ job-run-python-karolina:
1616 SCHEDULER_PARAMETERS : ' -A OPEN-30-41 -p qcpu_exp -N 1 --ntasks-per-node=1'
1717 tags :
1818 - it4i
19- - Barbora
19+ - barbora
2020 - slurmjob
2121 script :
2222 - set -e
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ # Check if 'python' exists; if not, use 'python3'
4+ python_cmd=$( command -v python || command -v python3)
5+
6+ if [ -z " $python_cmd " ]; then
7+ echo " Error: Python (or Python3) is not installed."
8+ exit 1
9+ fi
10+
11+ # Get the absolute path of the script directory
12+ script_dir=" $( cd " $( dirname " $0 " ) " && pwd) "
13+
14+ # Run the Python script with the chosen Python interpreter
15+ $python_cmd " $script_dir /../run.py" " $@ "
You can’t perform that action at this time.
0 commit comments