-
Notifications
You must be signed in to change notification settings - Fork 58
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
./cli.json on windows executable resolves to current working directory instead of path relative to .exe. #3
Comments
Hey @Claudiohbsantos, I haven't really thought about this, but looking for the config file in the same dir as the executable seems like the better approach. |
Here on Linux, I've encountered a related issue which was not present in previous versions. My always used Now I'm using |
I agree. @doronbehar /cc @jmattheis Are you interested in opening a PR for this? :) |
I think this is already fixed with 61a3e6c this isn't released yet, but I'll do this now. |
I think he was talking about making the user config directory as the default location to store config files. |
I think it is mainly about the |
Okay, I re-read the comment and it seems that you are right. I will open a new issue to track my proposal. |
After running
init
and selecting to save the configs to./cli.json
the executable is unable to find the config file unless the console working directory is the executable's directory. In fact, I believe the./cli.json
file is saved to whichever working directory you have active wheninit
is run.Not sure if this is the intended functionality but I expected it to save to the same directory as the
.exe
file and to always be loaded from there regardless of my working directory.As a temporary fix I created a batch script that I am using to call the cli app from anywhere with the expected behavior. I'm posting it here in case anyone finds this thread and needs an immediate fix.
The scripts needs to be placed on the same directory as the executable to work as is.
The text was updated successfully, but these errors were encountered: