ACHMartin / seastar_project

4 stars 0 forks source link

String concatanation used instead of os.path.join for filepaths merging in seastar.oscar.tools.load_OSCAR_data #290

Closed JWMichalski closed 2 months ago

JWMichalski commented 2 months ago

String concatanation of filepaths can cause issues with slashes. Solution: Replace

ds[ind] = readNetCDFFile(file_path + file_list[ind])

by

ds[ind] = readNetCDFFile(os.path.join(file_path, file_list[ind]))