Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Capability to Automatically Load Addon Library Files #28

Merged
merged 1 commit into from
Jan 28, 2024

Conversation

kilo52
Copy link
Member

@kilo52 kilo52 commented Jan 27, 2024

Introduces a property with key 'sys.addon.code.load' which can be defined by addons.

Adds a check for a property 'sys.addon.code.load', which can be defined by an addon in its 'project.properties' file. The introduced property defines a path to a script file, relative to the addon's source tree root, which should be automatically loaded by the init system into the global namespace. The loading must occur before any user-specific properties are loaded in order to avoid redefinitions.

Adds code in libinit.sh to check for a property 'sys.addon.code.load', which
can be defined by an addon in its 'project.properties' file. The introduced
property defines a path to a script file, relative to the addon's source tree
root, which should be automatically loaded by the init system into the global
namespace. The loading must occur before any user-specific properties are
loaded in order to avoid redefinitions.
@kilo52 kilo52 linked an issue Jan 27, 2024 that may be closed by this pull request
@kilo52 kilo52 added Feature New feature Addons Affects the addon mechanism labels Jan 27, 2024
@kilo52 kilo52 merged commit 65e258a into master Jan 28, 2024
4 checks passed
@kilo52 kilo52 deleted the feature/auto-load-addon-libs branch January 29, 2024 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Addons Affects the addon mechanism Feature New feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mechanism to Automatically Load Symbols From Addon Into Global Scope
1 participant