From a45c348f4fe71044f97982d84da68a18ba8189d8 Mon Sep 17 00:00:00 2001 From: Brian Herrera <19914798+brianherrera@users.noreply.github.com> Date: Fri, 30 Apr 2021 09:53:21 -0700 Subject: [PATCH] Fix root folder path for canary files This is related to the previous change to move these scripts. Validator will fail to find the canary files when running the script. --- scripts/scrubbing/validator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/scrubbing/validator.py b/scripts/scrubbing/validator.py index e442e443c8..ac7c45554f 100755 --- a/scripts/scrubbing/validator.py +++ b/scripts/scrubbing/validator.py @@ -312,7 +312,7 @@ class Validator(object): # Once we split the repos we will have to worry about multiple root points etc. but that is a problem for future us. # All the packaging safelist stuff goes away once repo is split for platforms this_path = Path(__file__).resolve() - root_folder = this_path.parents[5] + root_folder = this_path.parents[2] relative_folder = os.path.relpath(this_path.parent, root_folder) canary_file = os.path.join(root_folder, 'restricted', platform, relative_folder, platform.lower() + '_canary.txt') try: