added hd images feature
This commit is contained in:
+9
-3
@@ -35,9 +35,15 @@ _ERROR_PREF = '\033[1m[!!]\033[0m '
|
||||
print("Building book")
|
||||
def main():
|
||||
# clean build directory
|
||||
if os.path.isdir(_BUILD_d):
|
||||
shutil.rmtree(_BUILD_d, ignore_errors=True)
|
||||
os.mkdir(_BUILD_d)
|
||||
if not os.path.isdir(_BUILD_d):
|
||||
# shutil.rmtree(_BUILD_d, ignore_errors=True)
|
||||
os.mkdir(_BUILD_d)
|
||||
|
||||
if os.path.isdir(os.path.join(_BUILD_d, 'assets')):
|
||||
shutil.rmtree(os.path.join(_BUILD_d, 'assets'), ignore_errors=True)
|
||||
|
||||
if os.path.isfile(os.path.join(_BUILD_d, 'stories.html')):
|
||||
shutil.rmtree(os.path.join(_BUILD_d, 'stories.html'), ignore_errors=True)
|
||||
|
||||
print('Hyphen has fr language')
|
||||
print('fr' in pyphen.LANGUAGES)
|
||||
|
||||
Reference in New Issue
Block a user