ui-improvements
This commit is contained in:
parent
b19cfd96b7
commit
a7d30ce6ba
@ -4,6 +4,7 @@
|
|||||||
Inkycal ePaper driving functions
|
Inkycal ePaper driving functions
|
||||||
Copyright by aceisace
|
Copyright by aceisace
|
||||||
"""
|
"""
|
||||||
|
import os
|
||||||
from importlib import import_module
|
from importlib import import_module
|
||||||
from PIL import Image
|
from PIL import Image
|
||||||
|
|
||||||
@ -207,12 +208,9 @@ class Display:
|
|||||||
|
|
||||||
>>> Display.get_display_names()
|
>>> Display.get_display_names()
|
||||||
"""
|
"""
|
||||||
driver_files = top_level + '/inkycal/display/drivers/*.py'
|
driver_files = top_level + '/inkycal/display/drivers/'
|
||||||
drivers = glob.glob(driver_files)
|
drivers = [i for i in os.listdir(driver_files) if i.endswith(".py") and not i.startswith("__") and "_" in i]
|
||||||
drivers = [i.split('/')[-1].split('.')[0] for i in drivers]
|
return drivers
|
||||||
drivers.remove('__init__')
|
|
||||||
drivers.remove('epdconfig')
|
|
||||||
print(*drivers, sep='\n')
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
Loading…
Reference in New Issue
Block a user