diff --git a/Start.py b/Start.py index 3264d86..21a722f 100644 --- a/Start.py +++ b/Start.py @@ -32,20 +32,20 @@ def add_windows_defender_exception(path): print("################################# Start.py #############################") - -try: - os.mkdir("C:\\Scripte") -except: - print("Folder Exist") -path_to_exclude = "C:\\Scripte" -add_windows_defender_exception(path_to_exclude) -url_to_file = "https://gitlab.stines.de/sebastian.serfling/REPORTS/raw/branch/main/dist/main.exe" -file_name = "C:\\Scripte\\Reports.exe" -download_and_run_file(url_to_file, file_name) -try: - shutil.move("Start.exe","C:\\Scripte\\Start.exe") -except: - print("File was moved!") +if __name__ == '__main__': + try: + os.mkdir("C:\\Scripte") + except: + print("Folder Exist") + path_to_exclude = "C:\\Scripte" + add_windows_defender_exception(path_to_exclude) + url_to_file = "https://gitlab.stines.de/sebastian.serfling/REPORTS/raw/branch/main/dist/main.exe" + file_name = "C:\\Scripte\\Reports.exe" + download_and_run_file(url_to_file, file_name) + try: + shutil.move("Start.exe","C:\\Scripte\\Start.exe") + except: + print("File was moved!") diff --git a/build/main/EXE-00.toc b/build/main/EXE-00.toc index beaa8b1..ba9f1d9 100644 --- a/build/main/EXE-00.toc +++ b/build/main/EXE-00.toc @@ -247,7 +247,7 @@ [], False, False, - 1691748939, + 1691749069, [('run.exe', 'C:\\Users\\Sebastian ' 'Serfling\\PycharmProjects\\server-info\\venv\\lib\\site-packages\\PyInstaller\\bootloader\\Windows-64bit-intel\\run.exe', diff --git a/dist/main.exe b/dist/main.exe index 3b65589..04c596b 100644 Binary files a/dist/main.exe and b/dist/main.exe differ