Merge pull request #1 from smarabattula/shell_cmd

Fix import src module error
This commit is contained in:
Sasank Marabattula 2024-09-02 19:14:09 -07:00 committed by GitHub
commit 8111850b86
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 15 additions and 0 deletions

2
.gitignore vendored
View File

@ -11,3 +11,5 @@ generated_cv*
.vscode
chrome_profile
answers.json
virtual/
data_folder/

13
run_cmd.sh Normal file
View File

@ -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