Skip to content

Commit 93c03e0

Browse files
committed
windows not loading bug fix attempt
1 parent c979eb7 commit 93c03e0

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ before_install:
44
# Build this docker:
55
# - cd qgis-testing-environment && docker build -t qgis-testing-environment .
66
# or just pull it:
7-
- docker pull qgis/qgis:final-3_10_3
7+
- docker pull qgis/qgis:release-3_18
88
install:
9-
- docker run -d --name deeplearningtools-testing-env -v ${TRAVIS_BUILD_DIR}:/tests_directory -e DISPLAY=:99 qgis/qgis:final-3_10_3
9+
- docker run -d --name deeplearningtools-testing-env -v ${TRAVIS_BUILD_DIR}:/tests_directory -e DISPLAY=:99 qgis/qgis:release-3_18
1010
- sleep 10
1111
# Setup qgis and enable the plugin
1212
- docker exec -it deeplearningtools-testing-env sh -c "qgis_setup.sh DeepLearningTools"

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"python.testing.unittestArgs": [
33
"-v",
44
"-s",
5-
"./test",
5+
"./tests",
66
"-p",
77
"test_*.py"
88
],

__init__.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
__date__ = '2020-03-12'
2727
__copyright__ = '(C) 2020 by Philipe Borba'
2828

29+
from .deep_learning_tools import DeepLearningTools
30+
deepLearningTools = None
2931

3032
# noinspection PyPep8Naming
3133
def classFactory(iface): # pylint: disable=invalid-name
@@ -35,5 +37,6 @@ def classFactory(iface): # pylint: disable=invalid-name
3537
:type iface: QgsInterface
3638
"""
3739
#
38-
from .deep_learning_tools import DeepLearningTools
39-
return DeepLearningTools(iface)
40+
global deepLearningTools
41+
deepLearningTools = DeepLearningTools(iface)
42+
return deepLearningTools

gui/dataset_viewer_toolbar/viewer_toolbar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
# from .inspectFeatures_ui import Ui_Form
3939
FORM_CLASS, _ = uic.loadUiType(os.path.join(
40-
os.path.dirname(__file__), 'viewer_toolbar.ui'))
40+
os.path.dirname(__file__), 'viewer_toolbar.ui'), resource_suffix='')
4141

4242
class ViewerToolbar(QWidget,FORM_CLASS):
4343
def __init__(self, iface, parent=None):

0 commit comments

Comments
 (0)