-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
The codebase contains hardcoded paths that assume a specific environment (likely the original developer's machine or a specific server). This prevents the package from being installed and run successfully on other systems without manual modification.
Suggested Fix
- Use Platform-Independent Paths: Utilize os.path.expanduser("~") to default to the user's home directory, or use libraries like appdirs or pathlib to determine appropriate application data directories.
- Environment Variables: Allow these paths to be overridden via environment variables (e.g., SAFAA_MODEL_DIR).
- Relative Paths: Ensure relative paths are calculated robustly relative to the package installation location, not just the script location.
Versions
OS: All (Issue is cross-platform but specific to the hardcoded path structure)
Metadata
Metadata
Assignees
Labels
No labels