Fixes pour la mise à jour de mars (#598)

This commit is contained in:
Julien Constant
2023-04-04 22:50:19 +02:00
committed by Julien Constant
parent 8e7c025e47
commit f605f7dcc6
11 changed files with 69 additions and 12 deletions

View File

@ -14,6 +14,7 @@
#
#
import os
import subprocess
import re
@ -71,6 +72,10 @@ def get_semester(d=date.today()):
return "A" + str(start.year)[-2:]
def file_exist(path):
return os.path.exists(path)
def scale_dimension(width, height, long_edge):
if width > height:
ratio = long_edge * 1.0 / width