2023-08-16 00:20:26 +10:00
|
|
|
# SPDX-FileCopyrightText: 2023 Blender Authors
|
2023-06-14 23:06:58 +10:00
|
|
|
#
|
2023-02-21 16:39:58 +01:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
|
2025-01-04 20:27:07 +11:00
|
|
|
__all__ = (
|
|
|
|
|
"PATHS",
|
|
|
|
|
"PATHS_EXCLUDE",
|
|
|
|
|
"SOURCE_DIR",
|
|
|
|
|
)
|
|
|
|
|
|
2023-02-21 16:39:58 +01:00
|
|
|
import os
|
|
|
|
|
|
2024-10-22 16:44:21 +11:00
|
|
|
PATHS: tuple[str, ...] = (
|
2023-02-21 16:39:58 +01:00
|
|
|
"build_files",
|
|
|
|
|
"doc",
|
|
|
|
|
"release/datafiles",
|
|
|
|
|
"release/lts",
|
2023-02-21 18:40:47 +01:00
|
|
|
"scripts/freestyle",
|
|
|
|
|
"scripts/modules",
|
|
|
|
|
"scripts/presets",
|
|
|
|
|
"scripts/startup",
|
|
|
|
|
"scripts/templates_py",
|
2023-02-21 16:39:58 +01:00
|
|
|
"source/blender",
|
|
|
|
|
"tools",
|
|
|
|
|
"tests",
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
SOURCE_DIR = os.path.normpath(os.path.abspath(os.path.normpath(
|
2023-03-01 21:51:51 +11:00
|
|
|
os.path.join(os.path.dirname(__file__), "..", ".."))))
|
2023-02-21 16:39:58 +01:00
|
|
|
|
|
|
|
|
PATHS = tuple(
|
|
|
|
|
os.path.join(SOURCE_DIR, p.replace("/", os.sep))
|
|
|
|
|
for p in PATHS
|
|
|
|
|
)
|
|
|
|
|
|
2024-10-22 16:44:21 +11:00
|
|
|
PATHS_EXCLUDE: set[str] = set(
|
2023-02-21 16:39:58 +01:00
|
|
|
os.path.join(SOURCE_DIR, p.replace("/", os.sep))
|
|
|
|
|
for p in
|
|
|
|
|
(
|
|
|
|
|
"tools/svn_rev_map/sha1_to_rev.py",
|
|
|
|
|
"tools/svn_rev_map/rev_to_sha1.py",
|
|
|
|
|
"tools/svn_rev_map/rev_to_sha1.py",
|
2025-10-13 09:35:09 +00:00
|
|
|
"scripts/modules/_rna_manual_reference.py",
|
2023-02-21 16:39:58 +01:00
|
|
|
)
|
|
|
|
|
)
|