Skip to content
Snippets Groups Projects
Commit 78278114 authored by Nikolai.Hartmann's avatar Nikolai.Hartmann
Browse files

abspath for data dir

parent be03412d
No related branches found
No related tags found
No related merge requests found
...@@ -411,7 +411,7 @@ class ClassificationProject(object): ...@@ -411,7 +411,7 @@ class ClassificationProject(object):
for dataset_name in dataset_names: for dataset_name in dataset_names:
filename = os.path.join(self.project_dir, dataset_name+".h5") filename = os.path.join(self.project_dir, dataset_name+".h5")
if (self.data_dir is not None) and (not os.path.exists(filename)): if (self.data_dir is not None) and (not os.path.exists(filename)):
srcpath = os.path.join(self.data_dir, dataset_name+".h5") srcpath = os.path.abspath(os.path.join(self.data_dir, dataset_name+".h5"))
try: try:
os.link(srcpath, filename) os.link(srcpath, filename)
logger.info("Created hardlink from {} to {}".format(srcpath, filename)) logger.info("Created hardlink from {} to {}".format(srcpath, filename))
......
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