Rename es24n/ to modules/

Update sys.path reference in es24n_conf.py and all documentation
to reflect the new folder name.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-17 19:12:29 -04:00
parent a5f69ae8b0
commit cb1c23480e
9 changed files with 19 additions and 19 deletions

View File

@@ -22,17 +22,17 @@ No external dependencies — Python 3 standard library only. Compatible with Tru
## File Structure ## File Structure
``` ```
es24n_conf.py ← Entry point and main menu (run this) es24n_conf.py ← Entry point and main menu (run this)
es24n/ modules/
ui.py ← ANSI colours, display helpers, input prompts ui.py ← ANSI colours, display helpers, input prompts
serial_port.py ← SerialPort class (termios/fcntl/select, no pyserial) serial_port.py ← SerialPort class (termios/fcntl/select, no pyserial)
models.py ← IOMConfig and ShelfConfig dataclasses models.py ← IOMConfig and ShelfConfig dataclasses
redfish.py ← Redfish API client (shared by all workflows) redfish.py ← Redfish API client (shared by all workflows)
workflow_serial.py ← Serial-based IOM network configuration workflow workflow_serial.py ← Serial-based IOM network configuration workflow
workflow_firmware.py ← IOM and Fabric Card firmware update workflow workflow_firmware.py ← IOM and Fabric Card firmware update workflow
``` ```
`es24n_conf.py` adds `es24n/` to `sys.path` at startup so all inter-module imports work without a package structure. `es24n_conf.py` adds `modules/` to `sys.path` at startup so all inter-module imports work without a package structure.
## Workflows ## Workflows

View File

@@ -67,14 +67,14 @@ Connects to each IOM directly over the network and updates IOM and/or Fabric Car
## File Structure ## File Structure
``` ```
es24n_conf.py ← Entry point — run this es24n_conf.py ← Entry point — run this
es24n/ modules/
ui.py ← Display helpers and input prompts ui.py ← Display helpers and input prompts
serial_port.py ← Serial port driver (no pyserial required) serial_port.py ← Serial port driver (no pyserial required)
models.py ← IOMConfig and ShelfConfig data classes models.py ← IOMConfig and ShelfConfig data classes
redfish.py ← Redfish API client (shared by all workflows) redfish.py ← Redfish API client (shared by all workflows)
workflow_serial.py ← Serial-based network configuration workflow workflow_serial.py ← Serial-based network configuration workflow
workflow_firmware.py ← Firmware update workflow workflow_firmware.py ← Firmware update workflow
``` ```
## Notes ## Notes

View File

@@ -10,7 +10,7 @@ Compatible with TrueNAS (FreeBSD) and Linux.
Usage: Usage:
python3 es24n_conf.py python3 es24n_conf.py
All files in the es24n/ subdirectory must be present: All files in the modules/ subdirectory must be present:
ui.py, serial_port.py, models.py, redfish.py, ui.py, serial_port.py, models.py, redfish.py,
workflow_serial.py, workflow_firmware.py workflow_serial.py, workflow_firmware.py
""" """
@@ -19,7 +19,7 @@ import os
import sys import sys
import time import time
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), "es24n")) sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), "modules"))
from ui import _c, C, banner, draw_box, ok, warn, prompt from ui import _c, C, banner, draw_box, ok, warn, prompt
from workflow_firmware import firmware_update_workflow from workflow_firmware import firmware_update_workflow