Skip to content

Commit baf96ea

Browse files
pkl load
loading of local files modified
1 parent ef9894a commit baf96ea

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
77

88
[project]
99
name = "spotPython"
10-
version = "0.10.14"
10+
version = "0.10.15"
1111
authors = [
1212
{ name="T. Bartz-Beielstein", email="tbb@bartzundbartz.de" }
1313
]

src/spotPython/data/pkldataset.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,12 @@ def __init__(
121121

122122
@property
123123
def path(self):
124+
# user defined directory:
124125
if self.directory:
125126
return pathlib.Path(self.directory).joinpath(self.filename)
126-
return pathlib.Path(__file__).parent.joinpath(self.filename)
127+
# no user defined directory, use package directory
128+
else:
129+
return pathlib.Path(__file__).parent.joinpath(self.filename)
127130

128131
@property
129132
def _repr_content(self):

0 commit comments

Comments
 (0)