Skip to content

Commit

Permalink
fix(phpp_app): Update PHPP shape-file path
Browse files Browse the repository at this point in the history
  • Loading branch information
ed-p-may committed Sep 12, 2022
1 parent 6490888 commit 2659213
Show file tree
Hide file tree
Showing 4 changed files with 107 additions and 96 deletions.
Empty file removed PHX/__init__.py
Empty file.
4 changes: 3 additions & 1 deletion PHX/hbjson_to_phpp.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
import sys
import pathlib

from honeybee.config import folders

from PHX.from_HBJSON import read_HBJSON_file, create_project
from PHX.to_PHPP import phpp_app, xl_app
from PHX.to_PHPP.phpp_localization.shape_model import PhppShape
Expand Down Expand Up @@ -33,7 +35,7 @@
# --- Connect to open instance of XL, Load the correct PHPP Shape file
# -------------------------------------------------------------------------
xl = xl_app.XLConnection = xl_app.XLConnection(_output=print)
shape_file_dir = pathlib.Path("PHX", "to_PHPP", "phpp_localization")
shape_file_dir = pathlib.Path(folders.python_package_path, "PHX", "to_PHPP", "phpp_localization")
phpp_shape_file = phpp_app.get_shape_file(xl, shape_file_dir)
phpp_shape = PhppShape.parse_file(phpp_shape_file)
phpp_conn = phpp_app.PHPPConnection(xl, phpp_shape)
Expand Down
1 change: 1 addition & 0 deletions PHX/hbjson_to_wufi_xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from typing import Tuple, List
import sys
import pathlib

from PHX.from_HBJSON import read_HBJSON_file, create_project
from PHX.to_WUFI_XML import xml_builder, xml_txt_to_file

Expand Down
Loading

0 comments on commit 2659213

Please sign in to comment.