-
Notifications
You must be signed in to change notification settings - Fork 4
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
Fix error in file path #1
base: master
Are you sure you want to change the base?
Conversation
Add missing backslashes
@user1823 to see what happens at command line run |
But, trying to use the script without adding the extra backslashes gives me the error "Either MuTool.exe or this file are not in correct location". The example in the file (see below) doesn't have a backslash at the end.
Also, when using the So, I think that it is better to assume that the path contained in %addin% doesn't end in a backslash. Also, it seems that having an extra backslash is not harmful. Edit:
I now got what you were saying. However, because of the following code, addins is not assigned the value of %~DP0% if I have already set the value of addins in my system variables (which you have advised in line 46).
|
updated the example to show a terminal \ so set addins should be better for most users but these scripts do need test or vary for your own cases and .exe version. As basically should have been replaced with better more universal variants in the other repository (which was initially AutoHotKey extras) but many features now included in main SumatraPDF so needs a full reboot of concepts. |
I tried changing it to In short, I don't see any problem arising due to addition of these backslashes. So, I think that they should be added. If you are still not convinced, feel free to close this PR. |
the reason I am holding back is I dont have the time to check all the permutations so if it works dont fix it as any old loose |
The latest commit was just to share my latest local code with you. It completely avoids the problem of adding the mutool.exe in the same folder. Mutool is in my system path, which allows me to call it from anywhere. If you don't have the time to test it, fine. But if you do have some time in the future, I think that this approach is more clean. |
Add missing backslashes