Python: Support multiple custom script directories in Preferences #104876
|
@ -346,7 +346,8 @@ def script_path_pref():
|
|||
first valid of these script paths for now, for compatibility.
|
||||
"""
|
||||
# TODO how to handle deprecation of this?
|
||||
JulianEisel marked this conversation as resolved
Outdated
|
||||
return script_paths_pref()[0]
|
||||
script_paths = script_paths_pref()
|
||||
return script_paths[0] if len(script_paths) > 0 else ""
|
||||
|
||||
|
||||
def script_paths_pref():
|
||||
|
|
Loading…
Reference in New Issue
This comment can be removed and a deprecation warning can be shown, e.g.
Note that I think we could even consider removing the function, scripts that use it are likely not to function properly and I don't think its a widely used function either (none of the add-ons distributed with Blender use it for e.g.).
Will leave this up to you to decide. Can be removed in a separate change.