Template
forked from CEN-RA/Plugin_QGIS
Performance optimisée hors connexion
This commit is contained in:
@@ -5,7 +5,7 @@ from __future__ import absolute_import
|
||||
# from builtins import next
|
||||
# from builtins import str
|
||||
# from builtins import object
|
||||
# import qgis
|
||||
import os
|
||||
from qgis.PyQt.QtCore import QSettings
|
||||
from qgis.PyQt.QtWidgets import QDialog, QMessageBox
|
||||
# from qgis.PyQt.QtGui import QIcon
|
||||
@@ -18,7 +18,8 @@ from qgis.PyQt import QtGui
|
||||
from qgis.core import QgsSettings, Qgis
|
||||
|
||||
try:
|
||||
from .tools.PythonSQL import login_base
|
||||
if os.path.exists('N:'):
|
||||
from .tools.PythonSQL import login_base
|
||||
except ValueError:
|
||||
print('Pas de fichier PythonSQL')
|
||||
|
||||
|
||||
@@ -4,8 +4,8 @@ from __future__ import absolute_import
|
||||
# Import the PyQt and QGIS libraries
|
||||
from builtins import next
|
||||
from builtins import str
|
||||
# from builtins import object
|
||||
# import qgis
|
||||
import os
|
||||
|
||||
from qgis.PyQt.QtCore import QSettings
|
||||
from qgis.PyQt.QtWidgets import QDialog, QMessageBox
|
||||
# from qgis.PyQt.QtGui import QIcon
|
||||
@@ -16,7 +16,8 @@ from qgis.PyQt import QtGui
|
||||
from qgis.core import QgsSettings
|
||||
|
||||
try:
|
||||
from .tools.PythonSQL import login_base
|
||||
if os.path.exists('N:'):
|
||||
from .tools.PythonSQL import login_base
|
||||
except ValueError:
|
||||
print('Pas de fichier PythonSQL')
|
||||
# from .tools.SQLRequet import *
|
||||
|
||||
@@ -5,7 +5,7 @@ from __future__ import absolute_import
|
||||
# from builtins import next
|
||||
from builtins import str
|
||||
# from builtins import object
|
||||
# import qgis
|
||||
import os
|
||||
from qgis.PyQt.QtCore import QSettings
|
||||
from qgis.PyQt.QtWidgets import QDialog, QMessageBox, QDialogButtonBox
|
||||
# from qgis.PyQt.QtGui import QIcon
|
||||
@@ -18,7 +18,8 @@ from qgis.PyQt import QtGui
|
||||
from qgis.core import QgsSettings, QgsDataSourceUri, QgsProject
|
||||
|
||||
try:
|
||||
from .tools.PythonSQL import login_base
|
||||
if os.path.exists('N:'):
|
||||
from .tools.PythonSQL import login_base
|
||||
except ValueError:
|
||||
print('Pas de fichier PythonSQL')
|
||||
# from .tools.SQLRequet import *
|
||||
|
||||
Reference in New Issue
Block a user