Shortcutter
August 26, 2019
Folder doesn't exist: “c:\tools\miniconda3\envs\leo-dev\Scripts\leo-messages.exe”
This confuses heck out of me. Something between these two commits cause the batch file which runs Leo to use path to filename instead of path to folder.
Broken: 6af33dc04f0a172ecd16ba5125c29780f1dac734
Okay: 52fc0e015ae0a719e58daaba005703b744e50a4c
BROKEN
@echo off
if exist "c:\tools\miniconda3\envs\leo-dev\Scripts\leo-messages.exe\" (
cd /d "c:\tools\miniconda3\envs\leo-dev\Scripts\leo-messages.exe"
start .
) else (
echo Folder doesn't exist: "c:\tools\miniconda3\envs\leo-dev\Scripts\leo-messages.exe"
pause
)
PROPER
FIXED! Thank heavens for source code control, which let me step through each change one by one and get exactly to the change which caused the error. I didn't believe it the first few times reading through, because nothing I changed could have caused a change to the launch script -- or so I thought. The code didn't lie however.
bugfix: IF test for terminal caused premature exit
Location of the IF for "is this a terminal shortcut" caused the following
ELIF block to be skipped. Which in turn cause the launch batch file to
contain a broken path (can't CD to a filename).
From <https://github.com/maphew/shortcutter/commit/d77dc68c49352472a9048e9b40c74635388e14c6>