mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-09 02:54:16 +02:00
setup.py
This commit is contained in:
10
fpakman/core/resource.py
Executable file
10
fpakman/core/resource.py
Executable file
@@ -0,0 +1,10 @@
|
||||
import os
|
||||
|
||||
|
||||
def get_path(resource_path):
|
||||
app_dir = get_app_dir()
|
||||
return app_dir + '/resources/' + resource_path
|
||||
|
||||
|
||||
def get_app_dir():
|
||||
return os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||
Reference in New Issue
Block a user