Skip to content

Commit feb2ef1

Browse files
committed
fix incorrect icon path for pip install
1 parent dd76177 commit feb2ef1

3 files changed

Lines changed: 12 additions & 2 deletions

File tree

cs2tracker/constants.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,9 @@ def copy_initial_files_with_popup():
150150

151151
else:
152152
MODULE_DIR = os.path.dirname(os.path.abspath(__file__))
153-
PROJECT_DIR = os.path.dirname(MODULE_DIR)
153+
# The project directory doesn't really exist in this case
154+
# (pip only installs contents of cs2tracker/cs2tracker in site-packages)
155+
PROJECT_DIR = MODULE_DIR
154156
DATA_DIR = os.path.join(MODULE_DIR, "data")
155157

156158
CONFIG_FILE = os.path.join(DATA_DIR, "config.ini")
@@ -160,7 +162,7 @@ def copy_initial_files_with_popup():
160162
INVENTORY_IMPORT_SCRIPT = os.path.join(DATA_DIR, "get_inventory.js")
161163
NODE_MODULES = os.path.join(DATA_DIR, "node_modules")
162164

163-
ICON_FILE = os.path.join(PROJECT_DIR, "assets", "icon.ico")
165+
ICON_FILE = os.path.join(DATA_DIR, "icon.ico")
164166
BATCH_FILE = os.path.join(DATA_DIR, "cs2tracker_scraper.bat")
165167
INVENTORY_IMPORT_FILE = os.path.join(DATA_DIR, "inventory.json")
166168
INVENTORY_IMPORT_SCRIPT_DEPENDENCIES = [
@@ -224,4 +226,5 @@ def copy_initial_files_with_popup():
224226
"Copenhagen 2024 Sticker Capsule": "https://steamcommunity.com/market/search?q=copenhagen+capsule",
225227
"Shanghai 2024 Sticker Capsule": "https://steamcommunity.com/market/search?q=shanghai+capsule",
226228
"Austin 2025 Sticker Capsule": "https://steamcommunity.com/market/search?q=austin+capsule",
229+
"Budapest 2025 Sticker Capsule": "https://steamcommunity.com/market/search?q=budapest+capsule",
227230
}

cs2tracker/data/config.ini

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ https://steamcommunity.com/market/listings/730/Austin%202025%20Challengers%20Aut
6060
https://steamcommunity.com/market/listings/730/Austin%202025%20Champions%20Autograph%20Capsule ~ 0
6161
https://steamcommunity.com/market/listings/730/Austin%202025%20Contenders%20Autograph%20Capsule ~ 0
6262
https://steamcommunity.com/market/listings/730/Austin%202025%20Legends%20Autograph%20Capsule ~ 0
63+
https://steamcommunity.com/market/listings/730/Budapest%202025%20Challengers%20Autograph%20Capsule ~ 0
64+
https://steamcommunity.com/market/listings/730/Budapest%202025%20Champions%20Autograph%20Capsule ~ 0
65+
https://steamcommunity.com/market/listings/730/Budapest%202025%20Contenders%20Autograph%20Capsule ~ 0
66+
https://steamcommunity.com/market/listings/730/Budapest%202025%20Legends%20Autograph%20Capsule ~ 0
6367

6468
[Case Keys]
6569

@@ -171,6 +175,9 @@ https://steamcommunity.com/market/listings/730/Shanghai%202024%20Legends%20Stick
171175
https://steamcommunity.com/market/listings/730/Austin%202025%20Challengers%20Sticker%20Capsule ~ 0
172176
https://steamcommunity.com/market/listings/730/Austin%202025%20Contenders%20Sticker%20Capsule ~ 0
173177
https://steamcommunity.com/market/listings/730/Austin%202025%20Legends%20Sticker%20Capsule ~ 0
178+
https://steamcommunity.com/market/listings/730/Budapest%202025%20Challengers%20Sticker%20Capsule ~ 0
179+
https://steamcommunity.com/market/listings/730/Budapest%202025%20Contenders%20Sticker%20Capsule ~ 0
180+
https://steamcommunity.com/market/listings/730/Budapest%202025%20Legends%20Sticker%20Capsule ~ 0
174181

175182
[Music Kit Boxes]
176183

cs2tracker/data/icon.ico

37.2 KB
Binary file not shown.

0 commit comments

Comments
 (0)