Merge pull request #480 from MikeTheWatchGuy/Dev-latest

Added Try / Accept block back
This commit is contained in:
MikeTheWatchGuy 2018-10-14 21:22:04 -04:00 committed by GitHub
commit 214f904ed7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 11 deletions

View File

@ -41,17 +41,17 @@ def Launcher():
command_line = 'pyinstaller -wF "{}" {} {} {} {}'.format(source_file, icon_option, workpath_option, dispath_option, specpath_option) command_line = 'pyinstaller -wF "{}" {} {} {} {}'.format(source_file, icon_option, workpath_option, dispath_option, specpath_option)
if button is 'Make EXE': if button is 'Make EXE':
# try: try:
print(command_line) print(command_line)
print('Making EXE... this will take a while.. the program has NOT locked up...') print('Making EXE... this will take a while.. the program has NOT locked up...')
window.Refresh() window.Refresh()
# print('Running command {}'.format(command_line)) # print('Running command {}'.format(command_line))
runCommand(command_line) runCommand(command_line)
shutil.rmtree(folder_to_remove) shutil.rmtree(folder_to_remove)
os.remove(file_to_remove) os.remove(file_to_remove)
print('**** DONE ****') print('**** DONE ****')
# except: except:
# sg.PopupError('Something went wrong') sg.PopupError('Something went wrong')
def runCommand(cmd, timeout=None): def runCommand(cmd, timeout=None):