Skip to content

Commit

Permalink
Update the joining of project_path and project_name to pathlib co…
Browse files Browse the repository at this point in the history
…nvention (#154)
  • Loading branch information
bguttel authored May 21, 2024
1 parent 4dff819 commit f817b8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyEPR/ansys.py
Original file line number Diff line number Diff line change
Expand Up @@ -3246,7 +3246,7 @@ def load_ansys_project(proj_name: str,
), "ERROR! project_path is not a valid directory \N{loudly crying face}.\
Check the path, and especially \\ characters."

project_path /= project_path / Path(proj_name + extension)
project_path = Path(project_path, proj_name).with_suffix(extension)

if (project_path).is_file():
logger.info('\tFile path to HFSS project found.')
Expand Down

0 comments on commit f817b8a

Please sign in to comment.