Skip to content

Fix/output path standalone app#23

Merged
maple60 merged 5 commits into
mainfrom
fix/output-path-standalone-app
Apr 2, 2026
Merged

Fix/output path standalone app#23
maple60 merged 5 commits into
mainfrom
fix/output-path-standalone-app

Conversation

@maple60

@maple60 maple60 commented Apr 2, 2026

Copy link
Copy Markdown
Owner

This pull request introduces a utility module to centralize and robustly handle output directory paths, ensuring that all exported files are saved in user-writable locations across both development and standalone (frozen) builds. The refactor replaces hardcoded output paths throughout the codebase with this new logic, improving portability and reliability.

Centralized output path handling:

  • Added src/leaf_contour_efd/utils/paths.py, which provides get_output_dir and related helpers to determine a writable output directory, preferring a location near the app/executable for standalone builds and falling back to the OS user data directory if necessary.

Refactored widgets to use new output path logic:

  • Updated all widget modules (binarize_image.py, calculate_efd.py, clear_viewer.py, crop_rectangle.py, extract_contour.py, rotate_image.py) to use get_output_dir instead of hardcoded "output/..." paths for saving results. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12]

Documentation updates:

  • Updated both README.md and README_ja.md to explain the new output directory behavior for standalone builds, clarifying the fallback mechanism for non-writable locations. [1] [2]

maple60 added 5 commits April 2, 2026 09:57
…on-logic

スタンドアロン/開発実行での output ディレクトリ解決を一元化
…alone-app

Prefer portable output directory in standalone builds (スタンドアロン版でポータブル出力ディレクトリを優先)
@maple60
maple60 merged commit dab274b into main Apr 2, 2026
5 checks passed
@maple60
maple60 deleted the fix/output-path-standalone-app branch April 2, 2026 04:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant