summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornavanchauhan <navanchauhan@gmail.com>2023-05-29 13:40:27 -0600
committernavanchauhan <navanchauhan@gmail.com>2023-05-29 13:40:27 -0600
commit07687fffe072864dfe5bfbe24ef900716eb8bb5b (patch)
tree49641d7250fcee2d3ee07e0fb11f40f8cd085e38
parentafa6a62b1bb49307dcd5872bf231a4a8c45b72b9 (diff)
use os.path
-rw-r--r--.github/workflows/ci.yml2
-rw-r--r--main.py6
2 files changed, 5 insertions, 3 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 2b8023d..2530eed 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -28,7 +28,7 @@ jobs:
- name: Package for Windows
run: |
pip install -r requirements.txt
- pyinstaller --add-data "assets;assets" --onefile -c --noconfirm --collect-data sv_ttk main.py
+ pyinstaller --add-data "assets;assets" --onefile -c --noconfirm --collect-data sv_ttk --splash assets/GentryCapitalRGB.jpg main.py
- uses: actions/upload-artifact@v3
with:
name: pyramid-scheme
diff --git a/main.py b/main.py
index c01bab9..0369861 100644
--- a/main.py
+++ b/main.py
@@ -10,6 +10,7 @@ import sv_ttk
import darkdetect
import os
+from os import path
canadian_companies = []
@@ -240,8 +241,9 @@ class CompanySelector:
logo_padding = 100 # top padding for logo
pyramid_padding_bottom = 350 # bottom padding for pyramid
max_companies_in_row = 5
- primary_font = "assets/baskerville.ttf"
- secondary_font = "assets/gill_sans_bold.ttf"
+ base_path = "assets"
+ primary_font = path.join(base_path, "baskerville.ttf")
+ secondary_font = path.join(base_path, "gill_sans_bold.ttf")
# Group the companies by their scores
pyramid = {}