add error when pictures are not placed in images dir

pull/249/head
edgarriba 2015-12-02 14:23:48 +00:00
rodzic 515e327c1e
commit 986b00a7ad
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -34,6 +34,9 @@ class ODMLoadDatasetCell(ecto.Cell):
if not io.dir_exists(images_dir) or rerun_cell:
images_dir = io.join_paths(project_path, 'images')
if not io.dir_exists(images_dir):
log.ODM_ERROR("You must put your pictures into an <images> directory")
return ecto.QUIT
log.ODM_DEBUG('Loading dataset from: %s' % images_dir)