Page MenuHome

Experimental support for app-templates in user preferences scripts
AbandonedPublic

Authored by Campbell Barton (campbellbarton) on Tue, Jan 28, 8:43 AM.

Details

Reviewers
None
Summary

This patch supports the corner case of users wanting to install app-templates in the scripts path set in their user-preferences (not used by default).

There have been 3x reports about this, while I'm still not so keen to support it, this patch shows how it might be done.

This still seems like adding checks for a corner case, submitted the diff to get other devs opinions.

Some implications for this patch:

  • Requires a new module name just to support this directory: bl_app_templates_user_prefs.
  • All other paths aren't expected to change at run-time, where as BLENDER_PREF_SCRIPTS can be edited by the user or reset when loading factory preferences.
  • Potential order of initialization errors as app-templates may be loaded early in blenders startup.
  • Having preferences used in application level paths which aren't expected to change may be error prone.

Diff Detail

Repository
rB Blender
Branch
TEMP-USERPREF-APP-TEMPLATES (branched from master)
Build Status
Buildable 6409
Build 6409: arc lint + arc unit

Event Timeline

Campbell Barton (campbellbarton) edited the summary of this revision. (Show Details)
  • Error in last commit
Campbell Barton (campbellbarton) edited the summary of this revision. (Show Details)