precommit: Improve entrypoint.sh and quiet pip

This commit is contained in:
Ole Schütt 2020-08-30 00:25:13 +02:00 committed by Ole Schütt
parent e0d80e264b
commit a9e0f95442
3 changed files with 10 additions and 7 deletions

View file

@ -69,7 +69,7 @@ def main():
# Store candidate before changing base directory and creating scratch dir.
candidate_file_list = [os.path.abspath(fn) for fn in args.files]
base_dir = Path(__file__).parent.parent.parent.resolve()
base_dir = Path(__file__).resolve().parent.parent.parent
os.chdir(base_dir)
SCRATCH_DIR.mkdir(parents=True, exist_ok=True)