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.
This commit is contained in:
Brian Herrera
2021-04-30 09:53:21 -07:00
committed by GitHub
parent 4652b4e38a
commit a45c348f4f
+1 -1
View File
@@ -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: