Skip to content
Snippets Groups Projects
Commit 06a6fba1 authored by paul.tresson_ird.fr's avatar paul.tresson_ird.fr
Browse files

create empty class to init if packages are not properly installed to avoid...

create empty class to init if packages are not properly installed to avoid first error message on install
parent 96af55b8
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,12 @@ def classFactory(iface):
from .dialogs.check_gpu import has_gpu
from .dialogs.packages_installer import packages_installer_dialog
device = has_gpu()
packages_installer_dialog.check_required_packages_and_install_if_necessary(iface=iface, device=device)
packages_installed_allready = packages_installer_dialog.check_required_packages_and_install_if_necessary(iface=iface, device=device)
# packages_installer_dialog.check_required_packages_and_install_if_necessary(iface=iface)
from .iamap import IAMap
return IAMap(iface, cmd_folder)
if packages_installed_allready:
from .iamap import IAMap
return IAMap(iface, cmd_folder)
else:
from .dialogs.packages_installer.packages_installer_dialog import IAMapEmpty
return IAMapEmpty(iface, cmd_folder)
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment