Fixed missed changes in last commit.
This commit is contained in:
parent
2c3043c633
commit
45a751903b
1 changed files with 3 additions and 3 deletions
|
|
@ -1071,14 +1071,14 @@ def chdir(path):
|
|||
|
||||
def source_checksum():
|
||||
resources = ["__main__.py", "tools.py"]
|
||||
if "config" not in os.environ:
|
||||
if "ERIS_CONFIG" not in os.environ:
|
||||
resources.append("tools.toml")
|
||||
checksum_paths = []
|
||||
for resource in resources:
|
||||
with importlib.resources.path(eris, resource) as resource_path:
|
||||
checksum_paths.append(resource_path)
|
||||
if "config" in os.environ:
|
||||
checksum_paths.append(os.environ["config"])
|
||||
if "ERIS_CONFIG" in os.environ:
|
||||
checksum_paths.append(os.environ["ERIS_CONFIG"])
|
||||
sha256 = hashlib.sha256()
|
||||
for path in checksum_paths:
|
||||
with open(path, "rb") as source_file:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue