Skip to content
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

Allow File and Directory traits to accept py.path and pathlib objects #2555

Open
effigies opened this issue Apr 26, 2018 · 0 comments
Open

Comments

@effigies
Copy link
Member

It's becoming increasingly common, particularly in Python 3, to use pathlib objects to describe files and directories. It would be useful to transparently accept these in File and Directory traits, converting them to strings.

It might also be useful (in Nipype 2.0) to add variants of these traits that are automatically promoted to pathlib objects when pulled from self.inputs.

Related: #2513

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant