mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-18 03:26:30 +02:00
[ui] Components: fix CsvData error
This commit is contained in:
parent
aa5e2b76b6
commit
e0c42fb42a
1 changed files with 2 additions and 1 deletions
|
@ -4,6 +4,7 @@ from PySide2.QtCore import QObject, Slot, Signal, Property
|
||||||
from PySide2.QtCharts import QtCharts
|
from PySide2.QtCharts import QtCharts
|
||||||
|
|
||||||
import csv
|
import csv
|
||||||
|
import os
|
||||||
|
|
||||||
class CsvData(QObject):
|
class CsvData(QObject):
|
||||||
"""
|
"""
|
||||||
|
@ -45,7 +46,7 @@ class CsvData(QObject):
|
||||||
"""
|
"""
|
||||||
Read the CSV file and return a list containing CsvColumn objects
|
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 []
|
return []
|
||||||
|
|
||||||
csvRows = []
|
csvRows = []
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue