Update data.py

This commit is contained in:
langolierz
2018-03-14 15:14:10 +13:00
committed by GitHub
parent 1fb6ad1df4
commit 307521cea6

View File

@@ -21,7 +21,7 @@ SETTINGS_JSON = 'settings.json'
KEYPAD_MAPPING = 'keypad_action_mapping.json' KEYPAD_MAPPING = 'keypad_action_mapping.json'
EMPTY_SLOT = dict(name='', location='', length=-1, start=-1, end=-1) EMPTY_SLOT = dict(name='', location='', length=-1, start=-1, end=-1)
PATH_TO_DATA_OBJECTS = '{}/json_objects/'.format(get_the_current_dir_path()) PATH_TO_DATA_OBJECTS = '{}/json_objects/'.format(get_the_current_dir_path())
PATH_TO_BROWSER = '/media' PATH_TO_BROWSER = '/media/pi'
def read_json(file_name): def read_json(file_name):
with open(PATH_TO_DATA_OBJECTS + file_name) as data_file: with open(PATH_TO_DATA_OBJECTS + file_name) as data_file: