diff --git a/meshroom/ui/components/csvData.py b/meshroom/ui/components/csvData.py index 2e87ab57..b22f8eda 100644 --- a/meshroom/ui/components/csvData.py +++ b/meshroom/ui/components/csvData.py @@ -4,6 +4,7 @@ from PySide2.QtCore import QObject, Slot, Signal, Property from PySide2.QtCharts import QtCharts import csv +import os class CsvData(QObject): """ @@ -45,7 +46,7 @@ class CsvData(QObject): """ Read the CSV file and return a list containing CsvColumn objects """ - if not self._filepath or not self._filepath.endswith(".csv"): + if not self._filepath or not self._filepath.endswith(".csv") or not os.path.isfile(self._filepath): return [] csvRows = []