diff options
Diffstat (limited to 'py')
| -rw-r--r-- | py/utils.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/py/utils.py b/py/utils.py index a5c489f..1e2ae95 100644 --- a/py/utils.py +++ b/py/utils.py @@ -19,7 +19,8 @@ class KnownError(Exception): pass def load_api_key(): - config_file_path = os.path.join(os.path.expanduser("~"), ".config/openai.token") + config_file_path = os.path.expanduser(vim.eval("g:vim_ai_token_file_path")) + print(config_file_path) api_key_param_value = os.getenv("OPENAI_API_KEY") try: with open(config_file_path, 'r') as file: |