forked from zhangtaolab/DNALLM
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_cli.py
More file actions
34 lines (26 loc) · 758 Bytes
/
run_cli.py
File metadata and controls
34 lines (26 loc) · 758 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/env python3
"""
DNALLM CLI Launcher
This script provides a convenient way to run DNALLM commands from the
project root.
"""
import sys
from pathlib import Path
def main():
"""Main launcher function"""
# Add the current directory to Python path
current_dir = Path(__file__).parent
sys.path.insert(0, str(current_dir))
try:
# Import and run the CLI
from cli.cli import main as cli_main
cli_main()
except ImportError as e:
print(f"Error importing CLI: {e}")
print("Please ensure you're running from the project root directory.")
sys.exit(1)
except Exception as e:
print(f"CLI execution failed: {e}")
sys.exit(1)
if __name__ == "__main__":
main()