Skip to content

Commit

Permalink
Change location of database folder
Browse files Browse the repository at this point in the history
  • Loading branch information
phumthep committed Jan 25, 2025
1 parent c91c135 commit 5cd50b3
Show file tree
Hide file tree
Showing 6 changed files with 8,771 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -122,5 +122,5 @@ src/analysis/results/*
scripts/scratch.py

# Pownet generated files
pownet_*.csv
pownet_*.json
/model_library/*/pownet_*.csv
/model_library/*/pownet_*.json
8 changes: 7 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
[build-system]
requires = ["setuptools>=61.0.0", "wheel"]
requires = ["setuptools>=61.0.0", "setuptools-scm", "wheel"]
build-backend = "setuptools.build_meta"

[tool.setuptools.packages.find]
where = ["src"]

[tool.setuptools.package-data]
pownet = ["database/*.csv"]

[project]
name = "cisl-pownet"
version = "2.0.0"
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/pownet/folder_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def get_home_dir() -> str:


def get_database_dir() -> str:
return os.path.join(get_pownet_dir(), "database")
return os.path.join(os.path.dirname(os.path.abspath(__file__)), "database")


def get_test_dir() -> str:
Expand Down
Loading

0 comments on commit 5cd50b3

Please sign in to comment.