digital-science / dimcli

Python client and CLI for scientometrics and research analytics using the Dimensions API.
https://digital-science.github.io/dimcli/getting-started.html
MIT License
43 stars 6 forks source link

Enhance credentials file loading logic #28

Closed lambdamusic closed 5 years ago

lambdamusic commented 5 years ago

Logic a) if dsl.ini credentials file in WD that overrides everything b) try user level credentials ("~/.dimensions/") c) try navigating up directory tree for dsl.ini

This way we xan support better the following scenarios => a) and c) are useful for jupyter notebooks without system wide installation => b) is the usual case for CLI

lambdamusic commented 5 years ago

https://github.com/lambdamusic/dimcli/commit/1ccfb6e14b1a7442a608539346ea742eb62cd08f