Skip to content

Commit ca8c911

Browse files
authored
Merge pull request #18 from jarikmarwede/fix-startup-error
Fix startup error
2 parents c275763 + 8ca7128 commit ca8c911

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

library/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import pathlib
33

44
PROGRAM_NAME = "Start Menu Helper"
5-
VERSION_NUMBER = "1.1.1"
5+
VERSION_NUMBER = "1.1.2"
66
ICON_FILE_NAME = "icon.ico"
77
TIME_BETWEEN_SCANS_IN_MINUTES = 5
88
APP_DATA_PATH = pathlib.Path.home().joinpath("AppData")

main.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
11
#!/usr/bin/env python3
22
import argparse
33
import logging
4+
import os
45

56
import wx
67

78
from library import constants, gui
89

9-
logging.basicConfig(level=logging.INFO,
10-
filename=constants.LOG_FILE_PATH,
11-
filemode="a",
12-
format="%(asctime)s - %(levelname)s - %(message)s")
13-
1410
if __name__ == "__main__":
11+
if not os.path.exists(constants.CONFIGURATION_PATH):
12+
os.mkdir(constants.CONFIGURATION_PATH)
13+
14+
logging.basicConfig(level=logging.INFO,
15+
filename=constants.LOG_FILE_PATH,
16+
filemode="a",
17+
format="%(asctime)s - %(levelname)s - %(message)s")
18+
1519
argument_parser = argparse.ArgumentParser()
1620
argument_parser.add_argument("-b", "--start-in-background", action="store_true",
1721
help="Start the program in the background with the previous configuration")

scripts/setup_script.iss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
; This file is a script for generating the setup of the app using Inno Setup (http://www.jrsoftware.org/isinfo.php)
22
#define MyAppName "Start Menu Helper"
3-
#define MyAppVersion "1.1.1"
3+
#define MyAppVersion "1.1.2"
44
#define MyAppPublisher "Jarik Marwede"
55
#define MyAppURL "https://github.com/jarikmarwede/Start-Menu-Helper"
66
#define MyAppExeName "Start Menu Helper.exe"

0 commit comments

Comments
 (0)