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:
committed by
Brecht Van Lommel
parent
6922418a95
commit
2feadc623b
@@ -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 []
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user