trying to make it run on both a computer of local deving and the pi

This commit is contained in:
Tim Caldwell
2017-10-06 21:32:39 +13:00
parent 9d56b2fb35
commit 4ed1263e9e
4 changed files with 30 additions and 16 deletions

View File

@@ -30,7 +30,7 @@ def setup_logging():
logger = setup_logging()
######## sets paths and constants ########
PATH_TO_BROWSER = '/home/pi/pp_home/media' #TODO replace this with pi path name when i know what makes sense
PATH_TO_BROWSER = get_the_current_dir_path() #TODO replace this with pi path name when i know what makes sense
PATH_TO_DATA_OBJECTS = get_the_current_dir_path()
EMPTY_BANK = dict(name='',location='',length=-1,start=-1,end=-1)