Skip to content

Commit

Permalink
fix(bsdf): Ensure relative paths are correctly specified
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswmackey committed Jun 28, 2021
1 parent 91574d7 commit 558b730
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion honeybee_radiance/modifier/material/bsdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,11 @@ def __init__(self, bsdf_file, identifier=None, up_orientation=None, thickness=0,

def _update_values(self):
"update value dictionaries."
n_path = os.path.normpath(self.bsdf_file)
f_path = n_path if os.path.isabs(n_path) else './{}'.format(n_path)
self._values[0] = [
float(self.thickness),
os.path.normpath(self.bsdf_file),
f_path,
self.up_orientation.x,
self.up_orientation.y,
self.up_orientation.z,
Expand Down

0 comments on commit 558b730

Please sign in to comment.