Skip to content

Commit

Permalink
include TTkTableModelSQLite3 is sqlite3 is available
Browse files Browse the repository at this point in the history
  • Loading branch information
ceccopierangiolieugenio committed Nov 12, 2024
1 parent e59e34b commit efafb04
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion TermTk/TTkWidgets/TTkModelView/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from importlib.util import find_spec

from .tree import *
from .treewidget import *
from .treewidgetitem import *
Expand All @@ -9,4 +11,6 @@
from .tablewidgetitem import *
from .tablemodellist import *
from .tablemodelcsv import *
from .tablemodelsqlite3 import *

if find_spec('sqlite3'):
from .tablemodelsqlite3 import *
1 change: 1 addition & 0 deletions tools/check.import.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ __check(){
-e "TTkTerminal/__init__.py:import importlib.util" \
-e "TTkTerminal/__init__.py:import platform" |
grep -v \
-e "TTkModelView/__init__.py:from importlib.util import find_spec" \
-e "TTkModelView/tablemodelcsv.py:import csv" \
-e "TTkModelView/tablemodelsqlite3.py:import sqlite3" \
-e "TTkModelView/tablemodelsqlite3.py:import threading"
Expand Down

0 comments on commit efafb04

Please sign in to comment.