From 23343816ceb22731c788a510233c00d7456d0c4c Mon Sep 17 00:00:00 2001 From: smaraba Date: Mon, 2 Sep 2024 18:55:32 -0700 Subject: [PATCH 1/2] add pwd to PATH env --- run_cmd.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 run_cmd.sh diff --git a/run_cmd.sh b/run_cmd.sh new file mode 100644 index 0000000..fc5ce0d --- /dev/null +++ b/run_cmd.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +resume_file=$1 # No spaces around the '=' sign + +# Add the src directory to PYTHONPATH +export PYTHONPATH=$PYTHONPATH:$(pwd)/src + +# Run the Python script with the specified resume file +if [ -z "$resume_file" ]; then # Check if resume_file is empty + python main.py +else + python main.py --resume "$resume_file" +fi From 2f9f0af2be7c860f0309d20dd7e05568f5440b22 Mon Sep 17 00:00:00 2001 From: smaraba Date: Mon, 2 Sep 2024 19:08:13 -0700 Subject: [PATCH 2/2] add cwd to pythonpath env for src dir --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index 4e73720..af3d10f 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,5 @@ generated_cv* .vscode chrome_profile answers.json +virtual/ +data_folder/