Closed tomdurrant closed 9 months ago
@tomdurrant In this commit, when os.getenv('TPXO_ELEVATION') is None, pathlib.Path() will return a TypeError. I would suggest seperate os.getenv and pathlib.Path as following:
if self._h_file is None:
self._h_file = os.getenv('TPXO_ELEVATION')
if self._h_file is None:
self._h_file = pathlib.Path(appdirs.user_data_dir('tpxo')) / TPXO_ELEVATION
elif type(self._h_file) is str:
self._h_file = pathlib.Path(self._h_file)
Same thing as TPXO_VELOCITY. Thanks.
@cuill I have pushed a fix, but looks like you have already fixed it. Sorry for the slow response!
@tomdurrant No worries. I am going to close this PR since it was resolved. Thanks for your contribution.
…les. Fixes #118