Skip to content

How to create an extension? #9

Answered by ayyfte
Moosems asked this question in Q&A
Discussion options

You must be logged in to vote

tiny documentation on extensions

I haven't worked enough extensions BTW.

Extensions are just codes executed with an exec() function..

location

Extensions are saved in new folders made in DATA/extensions and main codes are in __init__.py file in that directory..

Manager file's structure

There is a class called tasks which has 12 lists namely:

1. after_imports (when modules are imported)
2. before_extension_installation (before extensions are loaded)
3. after_extension_installation (after extensions are loaded)
4. main_vars_definition (with important variables definition)
5. main_funcs_definition (with main funcs definition) 
6. main_classes_definition (with important classes' definition) 
…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ayyfte
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants