From 6a722de45ce6d2094ca7b4e0414d3035a73f5f01 Mon Sep 17 00:00:00 2001 From: Jarik Marwede Date: Sun, 25 Oct 2020 19:32:37 +0100 Subject: [PATCH 1/2] Create configuration folder if it does not exist already --- main.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/main.py b/main.py index d2e9d56..5583dbb 100644 --- a/main.py +++ b/main.py @@ -1,17 +1,21 @@ #!/usr/bin/env python3 import argparse import logging +import os import wx from library import constants, gui -logging.basicConfig(level=logging.INFO, - filename=constants.LOG_FILE_PATH, - filemode="a", - format="%(asctime)s - %(levelname)s - %(message)s") - if __name__ == "__main__": + if not os.path.exists(constants.CONFIGURATION_PATH): + os.mkdir(constants.CONFIGURATION_PATH) + + logging.basicConfig(level=logging.INFO, + filename=constants.LOG_FILE_PATH, + filemode="a", + format="%(asctime)s - %(levelname)s - %(message)s") + argument_parser = argparse.ArgumentParser() argument_parser.add_argument("-b", "--start-in-background", action="store_true", help="Start the program in the background with the previous configuration") From 8ca7128ec60ef51eefc9d6edd8a59c4b8f9c7669 Mon Sep 17 00:00:00 2001 From: Jarik Marwede Date: Sun, 25 Oct 2020 19:33:40 +0100 Subject: [PATCH 2/2] Update to version 1.1.2 --- library/constants.py | 2 +- scripts/setup_script.iss | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/library/constants.py b/library/constants.py index 52c5a8f..2d2f716 100644 --- a/library/constants.py +++ b/library/constants.py @@ -2,7 +2,7 @@ import pathlib PROGRAM_NAME = "Start Menu Helper" -VERSION_NUMBER = "1.1.1" +VERSION_NUMBER = "1.1.2" ICON_FILE_NAME = "icon.ico" TIME_BETWEEN_SCANS_IN_MINUTES = 5 APP_DATA_PATH = pathlib.Path.home().joinpath("AppData") diff --git a/scripts/setup_script.iss b/scripts/setup_script.iss index 0fca083..81eed9e 100644 --- a/scripts/setup_script.iss +++ b/scripts/setup_script.iss @@ -1,6 +1,6 @@ ; This file is a script for generating the setup of the app using Inno Setup (http://www.jrsoftware.org/isinfo.php) #define MyAppName "Start Menu Helper" -#define MyAppVersion "1.1.1" +#define MyAppVersion "1.1.2" #define MyAppPublisher "Jarik Marwede" #define MyAppURL "https://github.com/jarikmarwede/Start-Menu-Helper" #define MyAppExeName "Start Menu Helper.exe"