From b5f4d74ea95306d08cf94271e820505b15658eaf Mon Sep 17 00:00:00 2001 From: Manuela Vanegas Ferro <44076078+manuvanegas@users.noreply.github.com> Date: Fri, 25 Aug 2023 13:14:45 -0700 Subject: [PATCH] try to avoid copying `scripts` to apptainer image --- container.def | 4 +--- scripts/OneRun.jl | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/container.def b/container.def index 39a162d..7311876 100644 --- a/container.def +++ b/container.def @@ -13,7 +13,6 @@ Vanegas-Ferro %files src /code/src - scripts /code/scripts install.jl /code Project.toml /code README.md /code @@ -26,5 +25,4 @@ Vanegas-Ferro chmod -R a+rX $JULIA_DEPOT_PATH /code %runscript - cd /code - julia --project="." "$@" + julia "$@" diff --git a/scripts/OneRun.jl b/scripts/OneRun.jl index 2d7dfe6..c26e4bf 100644 --- a/scripts/OneRun.jl +++ b/scripts/OneRun.jl @@ -1,6 +1,6 @@ # Load Packages import Pkg -Pkg.activate(".") +Pkg.activate("/code/.") using Agents, CSV, DataFrames, Distributed, Statistics using SpatialRust