File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ def __init__(self):
77
88 self .criardiretorio (self .diretorioarcom )
99
10- self .javapath = r'"C:\Program Files (x86)\Java\jre1.8.0_281 \bin\java.exe"'
10+ self .javapathsearch = r'"C:\Program Files (x86)\Java\* \bin\java.exe"'
1111
1212 self .chocolateypath = r"c:\ProgramData\chocolatey\choco.exe"
1313
Original file line number Diff line number Diff line change 11import os
2+ import glob
23import zipfile
34import requests
45from object_execute import Object_execute
@@ -23,6 +24,7 @@ def thread_configurar(self):
2324 self .download_file_from_google_drive (file_id , destination )
2425 self .reportar ("Download finalizado" )
2526 self .reportar ("Executando instalação do Caixa" )
27+ self .javapath = glob .glob (self .javapathsearch , recursive = True )[0 ]
2628 self .executar (self .javapath + ' -jar ' + self .diretorioarcom + "\\ Setup.jar" )
2729 self .executar ('move ' + self .userdesktop +
2830 '\\ Caixa.lnk ' + self .allusersdesktop )
You can’t perform that action at this time.
0 commit comments