Creating sbslibs #477
-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
|
This works for me. Did you create an I added a {
"version": "1.0",
"sbslib": [
"quick_example"
]
}I build and have a artemis-sbs.quick_example.1.0.sbslib in sbs lib quick_exampleIf you do not have the sbs tool. Get it here and read about it here I made sure I have the lib in my story.json {
"sbslib": [
"artemis-sbs.sbs_utils.v1.3.0.sbslib",
"artemis-sbs.quick_example.1.0.sbslib"
]
}I create a file to boot strap adding it to globals test.py. from sbs_utils.mast.mast_globals import MastGlobals
MastGlobals.import_python_module("quick_example.test")
print("Importing test.py")I imported the test.py in a mast file. In my case it was a import test.pyI was able to use the function fine.
|
Beta Was this translation helpful? Give feedback.


This works for me.
Did you create an
__lib__.jsonin the source for the sbslib?Did you build an sbslib file, and is it in
__lib__?Did you also include the reference to the library in story.json of the missions that uses the library?
Did you
import testing_sbs.pyin any mast files?I added a
__lib__.json(note: The sbslib name needs to match the mission folder name which it looks like you did.){ "version": "1.0", "sbslib": [ "quick_example" ] }I build and have a artemis-sbs.quick_example.1.0.sbslib in
__lib__.If you do not have the sbs tool. Get it here and read about it here
I made sure I have the lib in my story.json
{ "sbslib": [ "