Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion run_gui
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
#!/bin/bash
#!/usr/bin/env bash

set -e

readonly script_dir="$(dirname "$(realpath -- "${BASH_SOURCE[0]}")")"

cd -- "${script_dir}"

# Setup conda, then activate the image-stitcher environment. The image-sticher
# environment should already exist from running the setup script.
echo "Setting up conda..."
eval "$(conda shell.bash hook)"

echo "Activating the image-stitcher conda environment..."
conda activate image-stitcher

echo "Running the image stitcher gui..."
python -m image_stitcher.stitcher_gui
2 changes: 1 addition & 1 deletion setup_ubuntu_22_04.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ then
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O "${minoconda_installer}"
bash "${minoconda_installer}" -b -u -p "${miniconda_install_dir}"

conda init --all
$miniconda_install_dir/bin/conda init --all
readonly miniconda_base_dir="$miniconda_install_dir"
echo "Using base environment location: '${miniconda_base_dir}'"
else
Expand Down