-
Notifications
You must be signed in to change notification settings - Fork 906
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
BF: Runner should launch scripts from their own directory #2816 #2819
Conversation
Updating to latest version for bug fix
updating to current, prep to fix runner cwd issue
See issue #2186. The new runner changed how the cwd was set so that it no longer used the file's directory as the working directory, and instead defaulted to the app folder. This fix uses the fileName string and uses rfind to locate the last instance of a folder delimiter ('\\' for windows, '/' for everything else) to set the working directory to the path of the current file. Tested on Mac, not yet tested in Windows.
Codecov Report
@@ Coverage Diff @@
## master #2819 +/- ##
==========================================
+ Coverage 44.43% 44.45% +0.01%
==========================================
Files 224 242 +18
Lines 38928 45032 +6104
Branches 6730 7650 +920
==========================================
+ Hits 17298 20018 +2720
- Misses 19832 22953 +3121
- Partials 1798 2061 +263
Continue to review full report at Codecov.
|
Update to current
Fixes CWD issue with PathLib instead of manual string editing.
Updated fix uses PathLib, and has been tested on Windows. Good to go. |
Thanks Jonathan. Oh, for commit messages try to prefx what type of change this is. BF indicates to me something that should be ported to bug-fix releases (we want this in 2020.1.3) whereas enhancements (ENH) and (new)FeatureFixes (FF) should be held back until 2020.2.0 |
Attempted fix for #2816
The new runner changed how the cwd was set so that it no longer used the file's directory as the working directory, and instead defaulted to the app folder. This fix uses the fileName string and uses rfind to locate the last instance of a folder delimiter ('\' for windows, '/' for everything else) to set the working directory to the path of the current file. Tested on Mac, not yet tested in Windows.