Ross Mountjoy e1d4b9f23e v0.5
- users are now managed through config.ini
- no more alembic, completely dynamic database, created on startup
- performance fixes
2020-03-20 17:56:53 -04:00

37 lines
972 B
Python
Executable File

import os
from pathlib import Path
# root path of the application
def get_root_folder():
curr_folder = os.path.dirname(__file__)
root_folder = Path(curr_folder).parent
return root_folder
root_folder = get_root_folder()
dashmachine_folder = os.path.join(root_folder, "dashmachine")
auth_cache = os.path.join(dashmachine_folder, "auth_cache")
template_apps_folder = os.path.join(root_folder, "template_apps")
platform_folder = os.path.join(dashmachine_folder, "platform")
user_data_folder = os.path.join(dashmachine_folder, "user_data")
static_folder = os.path.join(dashmachine_folder, "static")
images_folder = os.path.join(static_folder, "images")
apps_images_folder = os.path.join(images_folder, "apps")
backgrounds_images_folder = os.path.join(images_folder, "backgrounds")
icons_images_folder = os.path.join(images_folder, "icons")
cache_folder = os.path.join(static_folder, "cache")
user_images_folder = os.path.join(images_folder, "user")