Management panel shows update commands streams

This commit is contained in:
Vinicius Moreira
2019-06-18 17:01:13 -03:00
parent 833f7c142e
commit 3ffe2ad96f
9 changed files with 92 additions and 45 deletions

View File

@@ -1,13 +1,7 @@
import os
from pathlib import Path
local_resource_path = '{}/.local/share/fpakman/resources'.format(str(Path.home()))
app_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
def get_path(resource_path):
if os.path.exists(local_resource_path):
return local_resource_path + '/' + resource_path
else:
return app_dir + '/resources/' + resource_path
return app_dir + '/resources/' + resource_path