From c9895ea3b5c69160dd75488facae0ee53fa5c109 Mon Sep 17 00:00:00 2001 From: Matthew Defenderfer <mdefende@uab.edu> Date: Thu, 6 Mar 2025 15:40:04 -0600 Subject: [PATCH] add before script and try out the module version instead of singularity --- template/before.sh.erb | 2 ++ template/script.sh.erb | 12 +++++++----- 2 files changed, 9 insertions(+), 5 deletions(-) create mode 100644 template/before.sh.erb diff --git a/template/before.sh.erb b/template/before.sh.erb new file mode 100644 index 0000000..e9323a3 --- /dev/null +++ b/template/before.sh.erb @@ -0,0 +1,2 @@ +# Export the module function if it exists +[[ $(type -t module) == "function" ]] && export -f module diff --git a/template/script.sh.erb b/template/script.sh.erb index 3ea2f7f..5da8887 100755 --- a/template/script.sh.erb +++ b/template/script.sh.erb @@ -24,7 +24,7 @@ cd "${HOME}" # Start Pycharm # -export SINGULARITY_BINDPATH='/data,/scratch,/local,/share' +# export SINGULARITY_BINDPATH='/data,/scratch,/local,/share' # Load Anaconda3 module load Anaconda3 @@ -34,7 +34,9 @@ module list # Launch PyCharm set -x -singularity exec --env \"DISPLAY=$DISPLAY\" -B \"/tmp/.X11-unix:/tmp/.X11-unix\" \ - <%= context.extra_singularity_args %> \ - <%= context.container_path %> \ - pycharm \ No newline at end of file +# singularity exec --env \"DISPLAY=$DISPLAY\" -B \"/tmp/.X11-unix:/tmp/.X11-unix\" \ +# <%= context.extra_singularity_args %> \ +# <%= context.container_path %> \ +# pycharm + +module --ignore-cache load PyCharm/2022.3.2 \ No newline at end of file -- GitLab