-
Notifications
You must be signed in to change notification settings - Fork 17
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
modify FDB env var checks #414
base: develop
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #414 +/- ##
========================================
Coverage 90.10% 90.10%
========================================
Files 121 121
Lines 7905 7905
Branches 679 679
========================================
Hits 7123 7123
Misses 651 651
Partials 131 131 ☔ View full report in Codecov by Sentry. |
fdb_home = os.environ.get("FDB_HOME", None) | ||
fdb_conf = os.environ.get("FDB5_CONFIG", None) | ||
if fdb_home is None and fdb_conf is None: | ||
fdb5_home = os.environ.get("FDB5_HOME", None) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FDB5_DIR
can also be used to locate the library
Hi @cosunae, thank you for this PR. I agree with you that the checking for FDB support should be more consistent. However, please consider these points:
|
Thanks @sandorkertesz
|
The new check seems to be fine now! However, internally we do use FDB_HOME, so I suggest you add it back and check its existence together with the other 3. Then this PR can be merged. |
This PR tries to solve two issues:
it would be better if all python ecosystem using FDB would require the same variable, therefore I propose here to use FDB5_HOME to be compatible with pyfdb.