Skip to content

Commit

Permalink
Merge pull request #5 from tyler-macinnis/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
tyler-macinnis authored Aug 4, 2024
2 parents 1224301 + 7d9ee61 commit e8b46a1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 6 additions & 2 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit e8b46a1

Please sign in to comment.