Skip to content

Commit

Permalink
join paths properly
Browse files Browse the repository at this point in the history
  • Loading branch information
nlouwen committed Nov 26, 2024
1 parent a0b4d19 commit ae37ee9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion big_scape/file_input/load_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,9 @@ def load_dataset_folder(

if mode == bs_enums.INPUT_MODE.RECURSIVE:
# Path.glob does not traverse symlinked directories, fixed in python 3.13
files = [Path(f) for f in glob.glob(f"{path}/**/*.gbk", recursive=True)]
files = [
Path(f) for f in glob.glob(os.path.join(path, "**/*.gbk"), recursive=True)
]

if mode == bs_enums.INPUT_MODE.FLAT:
files = list(path.glob("*.gbk"))
Expand Down

0 comments on commit ae37ee9

Please sign in to comment.