Merge pull request #1 from smarabattula/shell_cmd
Fix import src module error
This commit is contained in:
commit
8111850b86
2
.gitignore
vendored
2
.gitignore
vendored
@ -11,3 +11,5 @@ generated_cv*
|
||||
.vscode
|
||||
chrome_profile
|
||||
answers.json
|
||||
virtual/
|
||||
data_folder/
|
||||
|
13
run_cmd.sh
Normal file
13
run_cmd.sh
Normal 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
|
Loading…
Reference in New Issue
Block a user