forked from microsoft/BitBLAS
-
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.
[BUGFIX] fix VERSION file not found error, which installed by pip
- Loading branch information
Showing
3 changed files
with
8 additions
and
20 deletions.
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 |
---|---|---|
@@ -1,21 +1,7 @@ | ||
# Copyright (c) Microsoft Corporation. | ||
# Licensed under the MIT License. | ||
|
||
import os | ||
|
||
# Get the absolute path of the current Python script's directory | ||
current_dir = os.path.dirname(os.path.abspath(__file__)) | ||
|
||
# Get the absolute path of the project root directory (one level above the current directory) | ||
project_root_dir = os.path.abspath(os.path.join(current_dir, "..")) | ||
|
||
# Define the path to the VERSION file located in the project root directory | ||
version_file_path = os.path.join(project_root_dir, "VERSION") | ||
|
||
# Read and store the version information from the VERSION file | ||
# Use 'strip()' to remove any leading/trailing whitespace or newline characters | ||
with open(version_file_path, "r") as version_file: | ||
__version__ = version_file.read().strip() | ||
__version__ = "0.1.0" | ||
|
||
# Define the public API for the module | ||
__all__ = ["__version__"] |
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