brightway-lca/brightway2-data

projects.report() - path problem

Stew-McD opened this issue · 1 comments

bd.projects.report()

gives: TypeError: unsupported operand type(s) for /: 'str' and 'str'

this is from line 389:

sum(os.path.getsize(root / name) for name in files)

it works if I change to:

sum(os.path.getsize(os.path.join(root, name)) for name in files)

or

sum(os.path.getsize(Path(root).joinpath(Path(name))) for name in files)


bw2data.version = (4, 0, 'DEV18')
OS = Ubuntu 22.10

Thanks Stewart. I am marking this as wont fix, as we will soon be integrating a completely new projects library and removing this code.