-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP autoloader init, specs.json initial structure, probably redundant…
…, can be replaced to assume __init__.py
- Loading branch information
1 parent
eaaf31b
commit 9c9fdc5
Showing
4 changed files
with
24 additions
and
3 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
{ | ||
"name": "MotivationBot", | ||
"version": "1.0.0", | ||
"main": "./__init__.py", | ||
"nlg": "naive" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import sys | ||
from os import path | ||
# add all the modules in it's lifetime to the path, failsafe for others | ||
CURRENT_DIR = path.join(path.abspath(path.dirname(__file__))) | ||
ACTIONS_A = path.join(CURRENT_DIR, "ActionsA") | ||
sys.path.append(CURRENT_DIR) | ||
sys.path.append(ACTIONS_A) | ||
|
||
|
||
from natlib import * | ||
|
||
pipeline = Pipeline() | ||
|
||
# Modules Path: Directory where all the modules/apps are present! | ||
MODULES_DIRECTORY = path.join(path.abspath(path.dirname(__file__)), "modules") | ||
|
||
# Import Map: Map of the module with their entrypoint! | ||
IMPORTMAPS = path.join(MODULES_DIRECTORY, "import.map") | ||
|
||
autoload(IMPORTMAPS) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters