made first symbol check system independent using os.path.sep
@@ -32,8 +32,9 @@ class BIDSLayout(Layout):
to_check = f.path
to_check = to_check.split(self.project_path, maxsplit=1)[1]
- if to_check[0] != '/':
- to_check = '/' + to_check
+ sep = os.path.sep
+ if to_check[:len(sep)] != sep:
+ to_check = sep + to_check
else:
None
