feat(root): add run_app and run_lock helper functions
Introduce helper functions to invoke the primary application and lock entry points, enhancing modularity and testability. New Features - run_app(): launches the main application. - run_lock(): launches the lock module. Enhancements - Refactor start.py to isolate command execution logic.
This commit is contained in:
1 file changed
+3
@@ -7,13 +7,16 @@ src_path = os.path.join(os.path.dirname(__file__), "src")
|
|||||||
if src_path not in sys.path:
|
if src_path not in sys.path:
|
||||||
sys.path.insert(0, src_path)
|
sys.path.insert(0, src_path)
|
||||||
|
|
||||||
|
|
||||||
def run_app():
|
def run_app():
|
||||||
from main import main as app_main
|
from main import main as app_main
|
||||||
|
|
||||||
app_main()
|
app_main()
|
||||||
|
|
||||||
|
|
||||||
def run_lock():
|
def run_lock():
|
||||||
from lock import main as lock_main
|
from lock import main as lock_main
|
||||||
|
|
||||||
lock_main()
|
lock_main()
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user