Skip to content

Commit 5cd50b3

Browse files
committed
Change location of database folder
1 parent c91c135 commit 5cd50b3

File tree

6 files changed

+8771
-4
lines changed

6 files changed

+8771
-4
lines changed

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,5 +122,5 @@ src/analysis/results/*
122122
scripts/scratch.py
123123

124124
# Pownet generated files
125-
pownet_*.csv
126-
pownet_*.json
125+
/model_library/*/pownet_*.csv
126+
/model_library/*/pownet_*.json

pyproject.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
[build-system]
2-
requires = ["setuptools>=61.0.0", "wheel"]
2+
requires = ["setuptools>=61.0.0", "setuptools-scm", "wheel"]
33
build-backend = "setuptools.build_meta"
44

5+
[tool.setuptools.packages.find]
6+
where = ["src"]
7+
8+
[tool.setuptools.package-data]
9+
pownet = ["database/*.csv"]
10+
511
[project]
612
name = "cisl-pownet"
713
version = "2.0.0"
File renamed without changes.

src/pownet/folder_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def get_home_dir() -> str:
3535

3636

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

4040

4141
def get_test_dir() -> str:

0 commit comments

Comments
 (0)