Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Allow Configurable BASE_DIR Using Environmental Variable #11145

Closed
gknor opened this issue Oct 26, 2023 · 2 comments
Closed
Assignees

Comments

@gknor
Copy link

gknor commented Oct 26, 2023

Currently, the BASE_DIR in the code is hardcoded as os.path.expanduser("~/.paddleocr/"). It would be beneficial to allow users to specify the BASE_DIR through an environmental variable, giving them more flexibility in configuring the application.

I propose to make the BASE_DIR configurable through an environmental variable. This change would allow users to set their desired directory path for storing PaddleOCR data.

I would modify the code that sets the BASE_DIR to check for the presence of an environmental variable, say PADDLEOCR_BASE_DIR.
If the environmental variable PADDLEOCR_BASE_DIR is present, use its value as the new BASE_DIR. If it's not present, use the default path as os.path.expanduser("~/.paddleocr/").

gknor added a commit to gknor/PaddleOCR that referenced this issue Oct 30, 2023
Instead of hardcoding the BASE_DIR in the code, I made it configurable by means of an environment variable:
gknor-edrone pushed a commit to edrone/PaddleOCR that referenced this issue Sep 9, 2024
Instead of hardcoding the BASE_DIR in the code, I made it configurable by means of an environment variable:
Copy link
Contributor

This issue is stale because it has been open for 90 days with no activity.

Copy link
Contributor

This issue was closed because it has been inactive for 14 days since being marked as stale.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Feb 14, 2025
@paddle-bot paddle-bot bot closed this as completed Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants