Core: Environment variables for deployment

* BLENDER_SYSTEM_SCRIPTS support for multiple script paths, separated by
  ; on Windows and : on other platforms.
* New BLENDER_CUSTOM_SPLASH to replace the splash screen image.
* New BLENDER_CUSTOM_SPLASH_BANNER to overlay an image on the splash.

Contributed by Sony Interactive Entertainment: https://github.com/PlayStation-OpenSource
This commit is contained in:
jlalleve
2025-01-14 20:54:22 +01:00
committed by Brecht Van Lommel
parent 6922418a95
commit 2feadc623b
4 changed files with 126 additions and 10 deletions

View File

@@ -418,8 +418,8 @@ def script_paths_pref():
def script_paths_system_environment():
"""Returns a list of system script directories from environment variables."""
if env_system_path := _os.environ.get("BLENDER_SYSTEM_SCRIPTS"):
return [_os.path.normpath(env_system_path)]
if env_system_paths := _os.environ.get("BLENDER_SYSTEM_SCRIPTS"):
return [_os.path.normpath(p) for p in env_system_paths.split(_os.pathsep) if p]
return []