Skip to content

Commit

Permalink
Merge pull request #5 from Samsonboadi/StreetSmartURLUpdate
Browse files Browse the repository at this point in the history
Updated StreetSmart to check for Cefpython3 installation
  • Loading branch information
Samsonboadi authored Jul 5, 2023
2 parents 08a0bb9 + def8715 commit 4e3b8e6
Showing 1 changed file with 20 additions and 19 deletions.
39 changes: 20 additions & 19 deletions street_smart.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,26 +234,27 @@ def __init__(self, iface, streetsmart):


#TODO refactor checks if the required DLLS are available if not copies them from the Bin dir to the DLLS dir
if not check_DLLS()[0]:
files = ['libssl-1_1-x64.dll', 'libcrypto-1_1-x64.dll']
checkbox_dialog = CheckboxDialog(files)
result = checkbox_dialog.exec_()
# Get the selected files if the OK button is clicked
print("returned files",check_DLLS()[1])

if result == QDialog.Accepted:
#selected_files = checkbox_dialog.selected_files
print("Selected files:", files)
for files in files:
print(files)
copy_missen_DLLS(os.path.join(return_Qgis_bin_path(check_DLLS()[1]),files),os.path.join(check_DLLS()[1],files))
else:
print("Dialog canceled")


#TODO check if Cefpython3 is not installed and install it
if not check_Cefpython_installation():
install_cefpython3()
if not check_DLLS()[0]:
files = ['libssl-1_1-x64.dll', 'libcrypto-1_1-x64.dll']
checkbox_dialog = CheckboxDialog(files)
result = checkbox_dialog.exec_()
# Get the selected files if the OK button is clicked
print("returned files",check_DLLS()[1])

if result == QDialog.Accepted:
#selected_files = checkbox_dialog.selected_files
print("Selected files:", files)
for files in files:
print(files)
copy_missen_DLLS(os.path.join(return_Qgis_bin_path(check_DLLS()[1]),files),os.path.join(check_DLLS()[1],files))
else:
print("Dialog canceled")


#TODO check if Cefpython3 is not installed and install it
if not check_Cefpython_installation():
install_cefpython3()



Expand Down

0 comments on commit 4e3b8e6

Please sign in to comment.