mirror of
https://github.com/blender/blender
synced 2026-09-28 04:04:20 +03:00
Rename modules in `./scripts/modules/` to use an underscore prefix to make it clear they aren't intended to be part of public API's. This also means there is no implication that these modules should be stable, allowing us to change them based on Blender's internal usage. The following modules have been marked as private: - `animsys_refactor` - `bl_console_utils` - `bl_i18n_utils` - `bl_previews_utils` - `bl_rna_utils` - `bl_text_utils` - `bl_ui_utils` - `bpy_restrict_state` - `console_python` - `console_shell` - `graphviz_export` - `keyingsets_utils` - `rna_info` - `rna_manual_reference` - `rna_xml` Note that we could further re-arrange these modules (under `_bpy_internal` in some cases), this change is mainly to mark them as private, further changes can be handed on a case-by-case basis. Ref !147773
45 lines
955 B
Python
45 lines
955 B
Python
# SPDX-FileCopyrightText: 2023 Blender Authors
|
|
#
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
__all__ = (
|
|
"PATHS",
|
|
"PATHS_EXCLUDE",
|
|
"SOURCE_DIR",
|
|
)
|
|
|
|
import os
|
|
|
|
PATHS: tuple[str, ...] = (
|
|
"build_files",
|
|
"doc",
|
|
"release/datafiles",
|
|
"release/lts",
|
|
"scripts/freestyle",
|
|
"scripts/modules",
|
|
"scripts/presets",
|
|
"scripts/startup",
|
|
"scripts/templates_py",
|
|
"source/blender",
|
|
"tools",
|
|
"tests",
|
|
)
|
|
|
|
SOURCE_DIR = os.path.normpath(os.path.abspath(os.path.normpath(
|
|
os.path.join(os.path.dirname(__file__), "..", ".."))))
|
|
|
|
PATHS = tuple(
|
|
os.path.join(SOURCE_DIR, p.replace("/", os.sep))
|
|
for p in PATHS
|
|
)
|
|
|
|
PATHS_EXCLUDE: set[str] = set(
|
|
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",
|
|
"scripts/modules/_rna_manual_reference.py",
|
|
)
|
|
)
|