From 3232ab6d8a64d390867dfd821049b0f928fb0263 Mon Sep 17 00:00:00 2001 From: Tyler MacInnis <21990225+tyler-macinnis@users.noreply.github.com> Date: Sun, 4 Aug 2024 16:17:24 -0400 Subject: [PATCH 1/2] Update main.py --- src/main.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main.py b/src/main.py index 52bfa80..9759548 100644 --- a/src/main.py +++ b/src/main.py @@ -10,11 +10,15 @@ # Constants APP_NAME = "Time Capsule" -SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__)) +if getattr(sys, 'frozen', False): + SCRIPT_DIR = os.path.dirname(sys.executable) +else: + SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__)) + DATES_FILE = os.path.join(SCRIPT_DIR, "important_dates.json") CATEGORIES_FILE = os.path.join(SCRIPT_DIR, "categories.json") DATE_FORMAT = "%m-%d-%Y" -VERSION = "1.1.1" +VERSION = "1.1.2" def load_dates(): From 7d9ee61456b7e26cac94077c52d1e5fec1df91d2 Mon Sep 17 00:00:00 2001 From: Tyler MacInnis <21990225+tyler-macinnis@users.noreply.github.com> Date: Sun, 4 Aug 2024 16:18:33 -0400 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e1360f4..272f8f5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -31,6 +31,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Security in case of vulnerabilities. +## [1.1.2] - 2024-08-04 + +### Fixed in 1.1.2 + +- Fixed `SCRIPT_DIR` for PyInstaller. + ## [1.1.1] - 2024-08-01 ### Fixed in 1.1.1