mirror of
https://github.com/chidiwilliams/buzz.git
synced 2026-03-16 23:55:51 +01:00
8 lines
222 B
Python
8 lines
222 B
Python
import os
|
|
import sys
|
|
|
|
|
|
def get_asset_path(path: str):
|
|
if getattr(sys, 'frozen', False):
|
|
return os.path.join(os.path.dirname(sys.executable), path)
|
|
return os.path.join(os.path.dirname(__file__), '..', path)
|