@@ -26,7 +26,7 @@ def __init__(self, iface, plugin_path=None):
26
26
self ._defered_packages = []
27
27
self .settings = QgsSettings ()
28
28
self .settings .beginGroup ("QPIP" )
29
-
29
+
30
30
if plugin_path is None :
31
31
self .plugins_path = os .path .join (
32
32
QgsApplication .qgisSettingsDirPath (), "python" , "plugins"
@@ -74,9 +74,7 @@ def initGui(self):
74
74
def initComplete (self ):
75
75
if self ._defered_packages :
76
76
log (f"Initialization complete. Loading deferred packages" )
77
- dialog , run_gui = self .check_deps (
78
- additional_plugins = self ._defered_packages
79
- )
77
+ dialog , run_gui = self .check_deps (additional_plugins = self ._defered_packages )
80
78
if run_gui :
81
79
self .promt_install (dialog )
82
80
self .save_settings (dialog )
@@ -98,7 +96,9 @@ def unload(self):
98
96
os .environ ["PYTHONPATH" ] = os .environ ["PYTHONPATH" ].replace (
99
97
self .bin_path + os .pathsep , ""
100
98
)
101
- os .environ ["PATH" ] = os .environ ["PATH" ].replace (self .bin_path + os .pathsep , "" )
99
+ os .environ ["PATH" ] = os .environ ["PATH" ].replace (
100
+ self .bin_path + os .pathsep , ""
101
+ )
102
102
103
103
def patched_load_plugin (self , packageName ):
104
104
"""
@@ -183,7 +183,7 @@ def check_deps(self, additional_plugins=[]) -> MainDialog | bool:
183
183
libs .values (), self ._check_on_startup (), self ._check_on_install ()
184
184
)
185
185
return dialog , needs_gui
186
-
186
+
187
187
def promt_install (self , dialog : MainDialog ):
188
188
"""Promts the install dialog and ask the user what to install"""
189
189
if dialog .exec_ ():
@@ -196,7 +196,7 @@ def promt_install(self, dialog: MainDialog):
196
196
if reqs_to_install :
197
197
log (f"Will install selected dependencies : { reqs_to_install } " )
198
198
self .pip_install_reqs (reqs_to_install )
199
-
199
+
200
200
def save_settings (self , dialog ):
201
201
"""Stores the settings values"""
202
202
sys .path_importer_cache .clear ()
0 commit comments