Skip to content

Commit

Permalink
fix: fixes issue with version
Browse files Browse the repository at this point in the history
  • Loading branch information
cvandeplas committed Jun 5, 2024
1 parent d2f690b commit 020c8fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions parsers/taskinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def parse_path(path: str) -> dict:
if 'threads:' in lines[n - 1]:
# end of main block detected
process = tabbasedhierarchy.parse_block(extracted_block)
# TODO extract process id and process_name from process['process'] line
process['threads'] = []
pass
else:
Expand Down
3 changes: 2 additions & 1 deletion utils/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@
import binascii
from functools import singledispatch
import base64
from pathlib import Path


def get_version(filename="VERSION.txt"):
"""Read the program version from VERSION.txt"""
try:
script_dir = os.path.dirname(os.path.abspath(__file__))
script_dir = Path(__file__).parent.parent
print(script_dir)
version_file = os.path.join(script_dir, filename)
with open(version_file, "r") as file:
Expand Down

0 comments on commit 020c8fb

Please sign in to comment.