-
Notifications
You must be signed in to change notification settings - Fork 532
PR: FIX Check that file exists in basedir, not current dir #2945
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
Conversation
@@ -486,7 +486,7 @@ def modify_paths(object, relative=True, basedir=None): | |||
out = tuple(out) | |||
else: | |||
if isdefined(object): | |||
if isinstance(object, (str, bytes)) and os.path.isfile(object): | |||
if isinstance(object, (str, bytes)) and os.path.isfile(os.path.join(basedir, object)): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please dismiss this comment.
Please check whether this:
if isinstance(object, (str, bytes)) and os.path.isfile(os.path.join(basedir, object)): | |
if isinstance(object, (str, bytes)) and os.path.isfile(os.path.join(basedir, os.path.basename(object))): |
Does not bring us back to the original problem. My impression is that it will. I agree with @effigies this is a result of loosing track of the traits.
Codecov Report
@@ Coverage Diff @@
## master #2945 +/- ##
=======================================
Coverage 67.59% 67.59%
=======================================
Files 344 344
Lines 43747 43747
Branches 5456 5456
=======================================
Hits 29572 29572
+ Misses 13466 13458 -8
- Partials 709 717 +8
Continue to review full report at Codecov.
|
Once we figure out the problem of ``OutputMultiObject``, we could go ahead and set fix nipy#2944, fix nipreps/fmriprep#1674, close nipy#2945.
Once we figure out the problem of ``OutputMultiObject``, we could go ahead and set fix nipy#2944, fix nipreps/fmriprep#1674, close nipy#2945.
Once we figure out the problem of ``OutputMultiObject``, we could go ahead and set fix nipy#2944, fix nipreps/fmriprep#1674, close nipy#2945.
Summary
Fixes #2944
List of changes proposed in this PR (pull-request)
Acknowledgment