Skip to content

Commit

Permalink
Merge pull request #681 from cjkrolak/671_setuppy_path_fix
Browse files Browse the repository at this point in the history
fix path and add debug code
  • Loading branch information
cjkrolak authored Oct 30, 2023
2 parents c7b0e34 + 311159b commit 047276d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ def read(rel_path):
returns:
(file pointer): pointer to open file.
"""
print(f"base path={here}")
print(f"relative path={rel_path}")
dir_list = os.listdir(here)
print(f"files in base path: {dir_list}")
with codecs.open(os.path.join(here, rel_path), 'r') as fp:
return fp.read()

Expand All @@ -47,7 +51,7 @@ def get_version(rel_path):

setup(
name="Thermostatsupervisor",
version=get_version("Thermostatsupervisor/thermostatsupervisor/__init__.py"),
version=get_version("thermostatsupervisor/__init__.py"),
author="Christopher Krolak",
author_email="[email protected]",
description="supervisor to detect and correct thermostat deviations",
Expand Down

0 comments on commit 047276d

Please sign in to comment.