-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcli.py
More file actions
21 lines (17 loc) · 744 Bytes
/
Copy pathcli.py
File metadata and controls
21 lines (17 loc) · 744 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
"""CLI entry point compatibility module.
This module provides compatibility for Windows installations where
entry points might resolve differently. It imports and re-exports
the main function from the actual CLI module.
This addresses the issue where Windows pip installations generate entry scripts
that import 'cli' instead of 'src.cli', causing ModuleNotFoundError.
"""
try:
# Try to import from the src package structure (development/editable install)
from src.cli import main
except ImportError:
# Fallback for potential different package structures
try:
from .cli import main
except ImportError:
raise ImportError("Could not import CLI main function from either src.cli or .cli")
__all__ = ['main']