„examples/solar-monitoring.py“ ändern

This commit is contained in:
robert 2024-02-01 07:49:53 +00:00
parent f2fab00d2f
commit e901d8db8f

View File

@ -1,11 +1,11 @@
#!/usr/bin/python
# -*- coding:utf-8 -*-
#import sys
#import os
#picdir = os.path.join(os.path.dirname(os.path.dirname(os.path.realpath(__file__))), 'pic')
#libdir = os.path.join(os.path.dirname(os.path.dirname(os.path.realpath(__file__))), 'lib')
#if os.path.exists(libdir):
# sys.path.append(libdir)
import sys
import os
picdir = os.path.join(os.path.dirname(os.path.dirname(os.path.realpath(__file__))), 'pic')
libdir = os.path.join(os.path.dirname(os.path.dirname(os.path.realpath(__file__))), 'lib')
if os.path.exists(libdir):
sys.path.append(libdir)
import logging
from waveshare_epd import epd2in13b_V3