This commit is contained in:
Vinicius Moreira
2019-06-14 14:02:44 -03:00
parent 5f77f4dcb1
commit 3188820bc6
26 changed files with 67 additions and 18 deletions

10
fpakman/core/resource.py Executable file
View 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__)))