unify import structure
This commit is contained in:
@@ -6,14 +6,14 @@ parse_to_tlookup = __import__("5_parse_to_tlookup")
|
|||||||
parse_to_jlookup = __import__("6_parse_to_jlookup")
|
parse_to_jlookup = __import__("6_parse_to_jlookup")
|
||||||
create_tutorial_coll = __import__("7_create_tutorial_coll")
|
create_tutorial_coll = __import__("7_create_tutorial_coll")
|
||||||
cleanup = __import__("8_cleanup")
|
cleanup = __import__("8_cleanup")
|
||||||
import FrameLibDocs.utils as hp
|
from FrameLibDocs.utils import cd_up, get_path, sign_off, space, hyp
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
root = hp.cd_up(hp.get_path(), 1)
|
|
||||||
hp.sign_off()
|
root = cd_up(get_path(), 1)
|
||||||
hp.space()
|
|
||||||
|
sign_off()
|
||||||
|
space()
|
||||||
|
|
||||||
## Stage 0
|
## Stage 0
|
||||||
## There is a prior stage here where make_object_list.py is called by Xcode.
|
## There is a prior stage here where make_object_list.py is called by Xcode.
|
||||||
@@ -23,47 +23,47 @@ def main():
|
|||||||
## The JSON file is used by edit_raw_XML.py to assign object categories to the xml files.
|
## The JSON file is used by edit_raw_XML.py to assign object categories to the xml files.
|
||||||
print("1. Building Category Database")
|
print("1. Building Category Database")
|
||||||
create_category_database.main(root)
|
create_category_database.main(root)
|
||||||
hp.hyp()
|
hyp()
|
||||||
|
|
||||||
## The purpose of this script is to set the categories for the Raw_XML files.
|
## The purpose of this script is to set the categories for the Raw_XML files.
|
||||||
## C++ doesnt know about the categories at XML creation and its easier to iterate file structures in python.
|
## C++ doesnt know about the categories at XML creation and its easier to iterate file structures in python.
|
||||||
## Edited XML files are copied from /tmp/ to the refpages directory
|
## Edited XML files are copied from /tmp/ to the refpages directory
|
||||||
print("2. Editing XML Files")
|
print("2. Editing XML Files")
|
||||||
edit_raw_XML.main(root)
|
edit_raw_XML.main(root)
|
||||||
hp.hyp()
|
hyp()
|
||||||
|
|
||||||
## This script creates a dictionary used to display specific object info in the extras Max Patch.
|
## This script creates a dictionary used to display specific object info in the extras Max Patch.
|
||||||
## Similar to the qlookup, but is specifically used to display the digest with mouse hovering
|
## Similar to the qlookup, but is specifically used to display the digest with mouse hovering
|
||||||
print("3. Building dlookup")
|
print("3. Building dlookup")
|
||||||
parse_to_dlookup.main(root)
|
parse_to_dlookup.main(root)
|
||||||
hp.hyp()
|
hyp()
|
||||||
|
|
||||||
## This script creates a dictionary that contains specific object information.
|
## This script creates a dictionary that contains specific object information.
|
||||||
## This provides the dynamic hover behaviour
|
## This provides the dynamic hover behaviour
|
||||||
print("4. Building qlookup")
|
print("4. Building qlookup")
|
||||||
parse_to_qlookup.main(root)
|
parse_to_qlookup.main(root)
|
||||||
hp.hyp()
|
hyp()
|
||||||
|
|
||||||
## Creates a dictionary used to display names and descriptions of tutorials in the extras Max Patch.
|
## Creates a dictionary used to display names and descriptions of tutorials in the extras Max Patch.
|
||||||
## The tutorials are categorised by difficulty. {Beginner, Intermediate, Advanced}
|
## The tutorials are categorised by difficulty. {Beginner, Intermediate, Advanced}
|
||||||
print("5. Building tlookup")
|
print("5. Building tlookup")
|
||||||
parse_to_tlookup.main(root)
|
parse_to_tlookup.main(root)
|
||||||
hp.hyp()
|
hyp()
|
||||||
|
|
||||||
## Creates a dict containing information about object parameters. This is used by the help file template.
|
## Creates a dict containing information about object parameters. This is used by the help file template.
|
||||||
print("6. Building jlookup")
|
print("6. Building jlookup")
|
||||||
parse_to_jlookup.main(root)
|
parse_to_jlookup.main(root)
|
||||||
hp.hyp()
|
|
||||||
|
|
||||||
## Creates a coll containing the file names of the tutorials. Makes it a bit easier to load them.
|
## Creates a coll containing the file names of the tutorials. Makes it a bit easier to load them.
|
||||||
print("7. Building tutorial name coll")
|
print("7. Building tutorial name coll")
|
||||||
create_tutorial_coll.main(root)
|
create_tutorial_coll.main(root)
|
||||||
hp.hyp()
|
hyp()
|
||||||
|
|
||||||
## Deletes all temporay files and cleans up process
|
## Deletes all temporay files and cleans up process
|
||||||
print("8. Cleaning up")
|
print("8. Cleaning up")
|
||||||
cleanup.main(root)
|
cleanup.main(root)
|
||||||
hp.hyp()
|
hyp()
|
||||||
print(" ")
|
print(" ")
|
||||||
print("Completed all python scripts.")
|
print("Completed all python scripts.")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user