Skip to content

Commit

Permalink
use version file
Browse files Browse the repository at this point in the history
  • Loading branch information
oriyalperin committed Nov 1, 2023
1 parent 67ebba4 commit dbdc2fd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions networkz/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,15 @@
import os
import pathlib

__version__ = "1.0.6"

# Get the current directory of the __init__.py file
current_directory = os.path.dirname(__file__)

version_file_path = os.path.join(current_directory, "VERSION")

# Read the version from the version file
with open(version_file_path, "r") as version_file:
__version__ = version_file.read().strip()

# Append the 'algorithms' directory to the __path__ attribute
__path__.append(os.path.join(current_directory, 'algorithms'))

Expand Down

0 comments on commit dbdc2fd

Please sign in to comment.