From d1b71fdc89d40a06b41281e6bab30f4ff586cc42 Mon Sep 17 00:00:00 2001 From: Michiel Cottaar <MichielCottaar@gmail.com> Date: Sat, 6 Oct 2018 10:15:40 +0100 Subject: [PATCH] BUG: Ensure filename is a string rather than a Path needed for python 3.5 --- fsl/utils/filetree/filetree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fsl/utils/filetree/filetree.py b/fsl/utils/filetree/filetree.py index c7d7bcf4d..151583e30 100644 --- a/fsl/utils/filetree/filetree.py +++ b/fsl/utils/filetree/filetree.py @@ -293,7 +293,7 @@ class FileTree(object): file_variables = {} - with open(filename, 'r') as f: + with open(str(filename), 'r') as f: for full_line in f: # ignore anything behind the first #-character line = full_line.split('#')[0] -- GitLab