-
Notifications
You must be signed in to change notification settings - Fork 77
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
don't rely on WORKDIR to run #30
Comments
On my system (Linux) I can execute the script from everywhere (I even created an alias in .bashrc in order to just type "chatgpt" from any folder), that's exactly the purpose of the line What's your OS? Can you provide a screenshot of the error message? |
OS is Linux, Manjaro on ARM64. Shell is zsh My git clone of the repo is in ~/coding/python/chatgpt-cli. This is where the I have a symlink to call the program rather than an alias:
The error thrown is simply "Configuration file not found" when I execute the To test, I've added an alias to zsh, that does indeed work. |
This is solved. |
The program won't find its config file (and I assume also the .history file) if it is being executed from anywhere other than the directory where the .py file itself is.
It would be much more convenient if those files would be written to ~/.config/chatgpt-cli or any other known directory so that the program can be executed from anywhere, for example through an alias.
Alternatively or on top of that, you could add a config parameter to supply that path. This would enable use of multiple ChatGPT accounts.
The text was updated successfully, but these errors were encountered: