naming convention

This commit is contained in:
aceisace
2022-10-02 00:49:27 +02:00
parent 8b0f21a649
commit 4d1ed107b7
29 changed files with 30 additions and 35 deletions

18
inkycal/tests/helper_functions.py Normal file → Executable file
View File

@@ -10,15 +10,15 @@ import sys
from os.path import exists
from inkycal.modules.inky_image import Inkyimage
preview = Inkyimage.preview
preview = Inkyimage.preview
merge = Inkyimage.merge
def get_environment():
# Check if this is running on the Raspberry Pi
environment = None
envir_path = '/sys/firmware/devicetree/base/model'
if exists(envir_path):
with open(envir_path) as file:
if 'Raspberry' in file.read():
environment = 'Raspberry'
return environment
# Check if this is running on the Raspberry Pi
environment = None
envir_path = '/sys/firmware/devicetree/base/model'
if exists(envir_path):
with open(envir_path) as file:
if 'Raspberry' in file.read():
environment = 'Raspberry'
return environment