File size: 672 Bytes
784ee2c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env bash

# Get the directory of the current script
script_dir="$(dirname "${BASH_SOURCE[0]}")"

# Check if the activation script exists
venv_path="$script_dir/autotuner_env/bin/activate"
if [ ! -f "$venv_path" ]; then
  echo "Error: Virtual environment activation script not found at $venv_path"
  echo "Please run installer.sh for installing the packages."
  exit 1
fi

# Source the activation script to activate the virtual environment
source "$venv_path"
echo "Virtual environment activated successfully."

# Make autotuner shared folder
AUTOTUNER_SHARED_DIR=$HOME/.local/shared-data/autotuner
mkdir -p $AUTOTUNER_SHARED_DIR
chmod 777 $AUTOTUNER_SHARED_DIR