Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions cs2tracker/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,9 @@ def copy_initial_files_with_popup():

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

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

ICON_FILE = os.path.join(PROJECT_DIR, "assets", "icon.ico")
ICON_FILE = os.path.join(DATA_DIR, "icon.ico")
BATCH_FILE = os.path.join(DATA_DIR, "cs2tracker_scraper.bat")
INVENTORY_IMPORT_FILE = os.path.join(DATA_DIR, "inventory.json")
INVENTORY_IMPORT_SCRIPT_DEPENDENCIES = [
Expand Down Expand Up @@ -224,4 +226,5 @@ def copy_initial_files_with_popup():
"Copenhagen 2024 Sticker Capsule": "https://steamcommunity.com/market/search?q=copenhagen+capsule",
"Shanghai 2024 Sticker Capsule": "https://steamcommunity.com/market/search?q=shanghai+capsule",
"Austin 2025 Sticker Capsule": "https://steamcommunity.com/market/search?q=austin+capsule",
"Budapest 2025 Sticker Capsule": "https://steamcommunity.com/market/search?q=budapest+capsule",
}
7 changes: 7 additions & 0 deletions cs2tracker/data/config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ https://steamcommunity.com/market/listings/730/Austin%202025%20Challengers%20Aut
https://steamcommunity.com/market/listings/730/Austin%202025%20Champions%20Autograph%20Capsule ~ 0
https://steamcommunity.com/market/listings/730/Austin%202025%20Contenders%20Autograph%20Capsule ~ 0
https://steamcommunity.com/market/listings/730/Austin%202025%20Legends%20Autograph%20Capsule ~ 0
https://steamcommunity.com/market/listings/730/Budapest%202025%20Challengers%20Autograph%20Capsule ~ 0
https://steamcommunity.com/market/listings/730/Budapest%202025%20Champions%20Autograph%20Capsule ~ 0
https://steamcommunity.com/market/listings/730/Budapest%202025%20Contenders%20Autograph%20Capsule ~ 0
https://steamcommunity.com/market/listings/730/Budapest%202025%20Legends%20Autograph%20Capsule ~ 0

[Case Keys]

Expand Down Expand Up @@ -171,6 +175,9 @@ https://steamcommunity.com/market/listings/730/Shanghai%202024%20Legends%20Stick
https://steamcommunity.com/market/listings/730/Austin%202025%20Challengers%20Sticker%20Capsule ~ 0
https://steamcommunity.com/market/listings/730/Austin%202025%20Contenders%20Sticker%20Capsule ~ 0
https://steamcommunity.com/market/listings/730/Austin%202025%20Legends%20Sticker%20Capsule ~ 0
https://steamcommunity.com/market/listings/730/Budapest%202025%20Challengers%20Sticker%20Capsule ~ 0
https://steamcommunity.com/market/listings/730/Budapest%202025%20Contenders%20Sticker%20Capsule ~ 0
https://steamcommunity.com/market/listings/730/Budapest%202025%20Legends%20Sticker%20Capsule ~ 0

[Music Kit Boxes]

Expand Down
Binary file added cs2tracker/data/icon.ico
Binary file not shown.