-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #681 from cjkrolak/671_setuppy_path_fix
fix path and add debug code
- Loading branch information
Showing
1 changed file
with
5 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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() | ||
|
||
|
@@ -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", | ||
|