Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make exp_with_args.sh agnostic to hard coded vars #31

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
Make exp_with_args.sh agnostic to hard coded vars
Automatic determination of the CodeT5 directory based on the parent of the directory the script resides in
  • Loading branch information
or-toledano authored Feb 14, 2022
commit a67ab4c8d0a58022dcb9dc8b4607e0710a74024b
3 changes: 2 additions & 1 deletion sh/exp_with_args.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
WORKDIR="path_to_your_dir/CodeT5"
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
WORKDIR="${SCRIPT_DIR}/.."
export PYTHONPATH=$WORKDIR

TASK=${1}
Expand Down