Skip to content

Commit

Permalink
Update scikit-learn script
Browse files Browse the repository at this point in the history
  • Loading branch information
lutzroeder committed Mar 2, 2024
1 parent 1523218 commit 4249ecc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/sklearn_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ def _update_attributes(schema, lines):
attribute['description'] = '\n'.join(description)

def _metadata():
json_file = os.path.join(os.path.dirname(__file__), '../source/sklearn-metadata.json')
root_dir = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
json_file = os.path.join(root_dir, 'source', 'sklearn-metadata.json')
with open(json_file, 'r', encoding='utf-8') as file:
json_root = json.loads(file.read())

Expand Down

0 comments on commit 4249ecc

Please sign in to comment.