summaryrefslogtreecommitdiff
path: root/src/main/python/utils/data.py
blob: 2053ff450066772811e935604f88e8aadc924ba5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
"""
Imports data from json configs, so that they can be imported from this module.
"""

from json import load
from .app import fileImporter

paperSizes = load(open(fileImporter("config/paperSizes.json")))

sheetDimensionList = list(paperSizes.keys())

ppiList = list(paperSizes[sheetDimensionList[0]].keys())

toolbarItems = load(open(fileImporter("config/items.json")))

defaultToolbarItems = toolbarItems.keys()