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

Allow to change path of configuration file #77

Open
fhg-isi opened this issue Jun 30, 2023 · 1 comment
Open

Allow to change path of configuration file #77

fhg-isi opened this issue Jun 30, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@fhg-isi
Copy link

fhg-isi commented Jun 30, 2023

Is your feature request related to a problem? Please describe.

According to documentation the configuation file has to be at a fixed place:

Paste the 2 line code into a %USERPROFILE%.cdsapirc file, where in your windows environment, %USERPROFILE% is usually located at C:\Users\Username folder).

I want to use cdsapi with a portable version of python and therefore would prefer if I could adapt the path.

Please provide an option to do so (or document it if already available)

@fhg-isi fhg-isi added the enhancement New feature or request label Jun 30, 2023
@marceloandrioni
Copy link

marceloandrioni commented Feb 28, 2024

Hello @fhg-isi , I haven't tried this, but this line indicates that you can set a environment variable named CDSAPI_RC with the path to the .cdsapirc file. If not found, the standard location (~/.cdsapirc) is used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants