10
0
mirror of https://github.com/LCPQ/quantum_package synced 2024-12-23 12:56:14 +01:00
quantum_package/doc/code_architecture/Script.md

45 lines
1.7 KiB
Markdown
Raw Normal View History

2015-06-05 09:50:24 +02:00
# `ei_handler.py`
2015-06-08 20:46:36 +02:00
This script in located in `$QP_ROOT/scripts/ezfio_interface/`.
2015-06-05 09:50:24 +02:00
It provide all the resource need to deal with the `EZFIO.cfg` files :
2015-06-08 20:46:36 +02:00
- The creation of `$MODULE_LOWER_ezfio_config` in `$QP_ROOT/ezfio/config`
2015-06-05 09:50:24 +02:00
- The `ezfio_interface.irp.f` who containt all the provider associate (in `$MODULE/`)
2015-06-08 20:46:36 +02:00
- The `$MODULE_LOWER_ezfio_defaults` in `$QP_ROOT/data/`
2015-06-05 09:50:24 +02:00
- The `Input_$MODULE_LOWER.ml` for the *qp_edit*
For more information you can type `ei_handler.py -h`
# `module_handler.py`
2015-06-08 20:46:36 +02:00
This script in located in `$QP_ROOT/scripts/module/`.
2015-06-16 14:35:16 +02:00
It provide all the resource related to the tree dependency of the modules.
2015-06-05 09:50:24 +02:00
If more useful as a librairy than a cli.
It have some usefull property:
- The list of module
- The dict of the descendant
- The dict of the parent
- The dict of the child
- The dict of the root
- The list reduced tree (For a list of module in input return only the root)
2015-06-05 22:33:19 +02:00
For tree syntax you can check http://en.wikipedia.org/wiki/Tree_%28data_structure%29#Terminologies_used_in_Trees
2015-06-05 09:50:24 +02:00
In the cli mode:
- From a `NEEDED_CHILDREN_MODULE` file you can have all the descendant, and a png
representation who correspond.
# `qp_install_module.py`
2015-06-08 20:46:36 +02:00
This script is located in `$QP_ROOT/scripts/module/`.
2015-06-05 09:50:24 +02:00
It is usefull when you need to install a new module. (From the soon to come repo or from scratch).
# `qp_create_ninja.py`
2015-06-08 20:46:36 +02:00
This script is located in `$QP_ROOT/scripts/compilation/`.
2015-06-05 09:50:24 +02:00
It will create the `build.ninja` file. It will use intersifly the `module_handler.py` module.
To read all the flag for the compilation the module `read_compilation_cfg.py` is used.
You only need to know, that all flag are appending.