Skip to content
Snippets Groups Projects
Commit 15245cb2 authored by Christopher Randolph Rhodes's avatar Christopher Randolph Rhodes
Browse files

set_data_directory assuming string, not path object

parent 7419caf7
No related branches found
No related tags found
No related merge requests found
......@@ -36,12 +36,12 @@ class Session(object):
def get_paths(self):
return self.paths
def set_data_directory(self, key: str, path: Path):
def set_data_directory(self, key: str, path: str):
if not key in self.paths.keys():
raise InvalidPathError(f'No such path {key}')
if not Path(path).exists():
raise InvalidPathError(f'Could not find {path}')
self.paths[key] = path
self.paths[key] = Path(path)
@staticmethod
def make_paths(root: str = None) -> dict:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment