From 7098e0b77cfe5d47cdf36e41f1c5a4f72aa3b000 Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Mon, 14 Nov 2022 23:05:17 +0200 Subject: Fix scripts ROOT_PATH --- scripts/ghpr.py | 2 +- scripts/scan.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/ghpr.py b/scripts/ghpr.py index 4e9a124..4406ba1 100644 --- a/scripts/ghpr.py +++ b/scripts/ghpr.py @@ -3,7 +3,7 @@ import sys from pathlib import Path from subprocess import run -ROOT_PATH = Path(__file__).parent +ROOT_PATH = Path(__file__).parents[1] path = sys.argv[1] diff --git a/scripts/scan.py b/scripts/scan.py index cf367f4..62d843a 100644 --- a/scripts/scan.py +++ b/scripts/scan.py @@ -2,7 +2,7 @@ import requests from pathlib import Path -ROOT_PATH = Path(__file__).parent +ROOT_PATH = Path(__file__).parents[1] DATA_DIR = ROOT_PATH / "data" -- cgit v1.3.1