Hoto Cocoa 8 лет назад
Родитель
Сommit
9a60aaed5d
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      app.py

+ 4 - 0
app.py

@@ -102,6 +102,10 @@ try:
     conn.commit()
 except:
     pass
+
+# Image directory create
+if not os.path.exists('image'):
+    os.makedirs('image')
     
 @route('/setup', method=['GET', 'POST'])
 def setup():