Added instructions
This commit is contained in:
parent
053c78764e
commit
97c686c637
@ -12,13 +12,16 @@ backup of the entire 'Calendar" folder first.
|
|||||||
|
|
||||||
Copyright by Ace-Laboratory
|
Copyright by Ace-Laboratory
|
||||||
"""
|
"""
|
||||||
|
# Usage:
|
||||||
|
# 1) Downlaod this file and copy the downloaded file to the raspberry (via VNC or WinSCP)
|
||||||
|
# 2) Execute the file without any modifications
|
||||||
|
# 3) In the section just below, change 'other/' to 'months/' and then execute again. Reboot and you're done.
|
||||||
|
|
||||||
#--------------only change the following two lines-----------------#
|
#--------------only change the following two lines-----------------#
|
||||||
input_path = '/home/pi/E-Paper-Master/Calendar/other/'
|
input_path = '/home/pi/E-Paper-Master/Calendar/other/'
|
||||||
output_path = '/home/pi/E-Paper-Master/Calendar/other/'
|
output_path = '/home/pi/E-Paper-Master/Calendar/other/'
|
||||||
#-----------------no need to change anything below-----------------#
|
#-----------------no need to change anything below-----------------#
|
||||||
|
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Info: These path contain the bmps that require converting.
|
Info: These path contain the bmps that require converting.
|
||||||
1) /home/pi/E-Paper-Master/Calendar/months/
|
1) /home/pi/E-Paper-Master/Calendar/months/
|
||||||
@ -47,8 +50,8 @@ try:
|
|||||||
print('checking if the output path exists...')
|
print('checking if the output path exists...')
|
||||||
os.makedirs(output_path)
|
os.makedirs(output_path)
|
||||||
except OSError as e:
|
except OSError as e:
|
||||||
print('Oh, the output path exists already.')
|
print('Oh, the output path exists already. Assuming you know what you are doing.')
|
||||||
print('Will attempt to overwrite all files')
|
print('Will attempt to overwrite all .bmp files')
|
||||||
if e.errno != errno.EEXIST:
|
if e.errno != errno.EEXIST:
|
||||||
raise
|
raise
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user