-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: добавлена команда run_script - возможность выполнить внешний py…
…thon-скрипт
- Loading branch information
Макаров Игорь (Makarov_IV)
authored and
Макаров Игорь (Makarov_IV)
committed
Dec 18, 2023
1 parent
992f58c
commit c9af436
Showing
5 changed files
with
85 additions
and
1 deletion.
There are no files selected for viewing
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
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
Binary file not shown.
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 @@ | ||
# отобразить доступные локальные переменные | ||
log.info(pformat(locals())) | ||
|
||
# проверить передан ли параметра arg1 | ||
if "arg1" not in locals(): | ||
log.error("Пропущен обязательный параметр arg1") | ||
sys.exit(-1) | ||
|
||
# вывести значение параметра arg1 | ||
log.info("Параметры запуска:") | ||
log.info(f' arg1={arg1}') | ||
|
||
# отобразить путь к config.yml текущего экземпляра RX | ||
log.info(f'Путь к config.yml: {self_map.config_path}') | ||
|
||
# вызвать метод класса ManageAppliedProject | ||
self_map.check_sdk(need_pause=False) | ||
|
||
# вызвать функцию, определенную в map_installer.py | ||
log.info(f'Версия RX: {_get_rx_version()}') |
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