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

Open
gknor opened this issue Oct 26, 2023 · 1 comment
Open
Assignees
Labels

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.

@github-actions github-actions bot added the stale label Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants