mirror of
https://github.com/chidiwilliams/buzz.git
synced 2024-06-07 18:52:12 +02:00
9 lines
224 B
Python
9 lines
224 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), "buzz", path)
|
|
return os.path.join(os.path.dirname(__file__), path)
|